{"id":4118,"date":"2022-06-03T15:04:57","date_gmt":"2022-06-03T07:04:57","guid":{"rendered":"https:\/\/www.scijournal.org\/articles\/?p=4118"},"modified":"2022-07-14T03:16:56","modified_gmt":"2022-07-13T19:16:56","slug":"parallel-symbol-in-latex","status":"publish","type":"post","link":"https:\/\/www.scijournal.org\/articles\/parallel-symbol-in-latex","title":{"rendered":"How to write the parallel symbol\u00a0in LaTeX?"},"content":{"rendered":"\n<p><em>This article aims to show you the simplest and easiest way to write the Parallel symbol&nbsp;in LaTeX.<\/em><\/p>\n\n\n\n<p>Some symbols, you probably have never heard of, are more common than you may think in LaTeX and the parallel symbol is one of them. Today you will learn about it and how to insert it in your documents<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Parallel Symbol or Vertical Bars<\/strong><\/h2>\n\n\n\n<p>First of all, by definition this symbol or sign (either way is correct) is called <strong>the parallel operator<\/strong>, composed of two vertical bars next to each other. It is used in geometry to denote two straight lines at zero degree angles to each other, thus separated by the same distance through ist longitude.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image5.png\" alt=\"Parallel symbol\u00a0in LaTeX : Two parallel lines. Image: author\" class=\"wp-image-4120\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image5.png 1024w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image5-300x300.png 300w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image5-150x150.png 150w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image5-768x768.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Two parallel lines. Image: author<\/figcaption><\/figure><\/div>\n\n\n<p>It is also a mathematical function common in electrical engineering, and in fluid mechanics, physics, and financial mathematics. The following symbols are used to express the operator.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"327\" height=\"73\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image2.png\" alt=\"Parallel symbol\u00a0in LaTeX : One bar next to another one. Image: author\" class=\"wp-image-4121\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image2.png 327w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image2-300x67.png 300w\" sizes=\"(max-width: 327px) 100vw, 327px\" \/><figcaption>One bar next to another one. Image: author<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Parallel Symbol in LaTeX<\/strong><\/h2>\n\n\n\n<p>In LaTeX this expression is created by a built-in command, defined by \\<strong>parallel<\/strong>, as you can see it does not require extra values as argument. By writing the command you generated both lines. There is another option to use, writing the symbol \u201c|\u201d twice to generate the output \u201c||\u201d.&nbsp;&nbsp;<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nFor example\n\\documentclass{article}\n\\begin{document}\n\\begin{center}\n\u00a0 \u00a0 First method \\verb|\\parallel|: $\\parallel$ \\\\\n\u00a0 \u00a0 Second method \\textbar\\textbar: $||$\n\\end{center}\n\\end{document}\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"94\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image3.png\" alt=\"Parallel symbol\u00a0in LaTeX : Two commands, same expression. Image: author\" class=\"wp-image-4122\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image3.png 362w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image3-300x78.png 300w\" sizes=\"(max-width: 362px) 100vw, 362px\" \/><figcaption>Two commands, same expression. Image: author<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Absolute value with vertical bars<\/strong><\/h2>\n\n\n\n<p>You may think \u201cwait a minute, that symbol is just like the absolute value bars. Can I use it?\u201d the answer is yes, and actually you can also use the same commands for the absolute value symbol for the parallel symbols.&nbsp;<\/p>\n\n\n\n<p>By writing \u201c\\<strong>|<\/strong>\u201d we generated the absolute value\/parallel symbol, let\u2019s see it<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\documentclass{article}\n\\begin{document}\n\\begin{center}\n\u00a0 \u00a0 Absolute value used as parallel $\\backslash$\\textbar: $\\|$ \\\\\n\u00a0 \u00a0 Original command \\verb|\\parallel|: $\\parallel$\n\\end{center}\n\\end{document}\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"477\" height=\"88\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image1.png\" alt=\"Parallel symbol\u00a0in LaTeX : Another available method. Image: author\" class=\"wp-image-4123\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image1.png 477w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image1-300x55.png 300w\" sizes=\"(max-width: 477px) 100vw, 477px\" \/><figcaption>Another available method. Image: author<\/figcaption><\/figure><\/div>\n\n\n<p>Now, let\u2019s say we do have something that is not parallel, in that case to write it in LaTeX we need to load the amssymb package in the preamble (the beginning of the document), then we call the command \\<strong>nparallel<\/strong>, let\u2019s see the output<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\documentclass{article}\n\\usepackage{amssymb} %we load the package\n\\begin{document}\n\\begin{center}\n\u00a0 \u00a0 Parallel \\verb|\\parallel|: $\\parallel$ \\\\\n\u00a0 \u00a0 Nonparallel \\verb|\\nparallel|: $\\nparallel$ \\\\\n\u00a0 \u00a0 Shorter non parallel \\verb|\\nshortparallel|: $\\nshortparallel$\n\\end{center}\n\\end{document}\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"554\" height=\"133\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image4.png\" alt=\"Parallel symbol\u00a0in LaTeX : Nonparallel commands. Image: author\" class=\"wp-image-4124\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image4.png 554w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/06\/image4-300x72.png 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><figcaption>Nonparallel commands. Image: author<\/figcaption><\/figure><\/div>\n\n\n<p>Notes: you can also generate a shorter non parallel symbol with the command \\<strong>nshortparallel<\/strong>, likewise you need the amssymb package. If you see the \\<strong>textbar<\/strong> command, it is to write the character \u201c|\u201d in the text mode.<\/p>\n\n\n\n<p>Now you have the knowledge to start writing the parallel symbol, with three methods. Remember your best ally is the internet so if you have doubts of whether a symbol exists in LaTeX, google it!<\/p>\n\n\n\n<p>I hope this post was helpful, and as always keep writing in LaTeX.<\/p>\n\n\n\n<p><em>All the images were created in LaTeX by the author.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Further Reading<\/strong><\/h2>\n\n\n\n<p><strong>LaTex Tutorial<\/strong> <strong>on Symbols<\/strong><\/p>\n\n\n\n<ol><li><a href=\"https:\/\/www.scijournal.org\/articles\/cross-product-symbol-in-latex\">How To Create A Cross Product Symbol In LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/hat-symbol-in-latex\">How to create a hat symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/prime-symbol-in-latex\">How to create a prime symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/absolute-value-symbol-in-latex\">How to create an absolute value symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/approximate-symbol-in-latex\">How to create an approximate symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/intersection-symbol-in-latex\">How to create an intersection symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/empty-set-symbol-in-latex\">How to create the empty set symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/degree-symbol-in-latex\">How to write a degree symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/dot-product-in-latex\">How to write a dot product in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/greater-than-symbol-in-latex\">How to Write a Greater Than Symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/norm-symbol-in-latex\">How to write a norm symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/plus-minus-symbol-in-latex\">How to write A Plus-Minus Symbol in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/proportional-to-symbol-in-latex\">How to write a proportional to symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/real-number-symbol-in-latex\">How to write a real number symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/tilde-symbol-in-latex\">How to write a tilde symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/union-symbol-in-latex\">How to write a union symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/vector-in-latex\">How to write a vector in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/infinity-symbol-in-latex\">How to write an infinity symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/bold-text-in-latex\">How to write bold text in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/dots-symbols-in-latex\">How To Write Dots Symbols In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/arrow-symbols-in-latex\">How to write the arrow symbols in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/degree-celsius-symbol-in-latex\">How to write the Degree celsius symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/equal-or-not-equal-symbol-in-latex\">How to write the equal or not equal symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/euro-symbol-in-latex\">How to write the Euro symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/floor-symbol-in-latex\">How to write the floor symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/gradient-operator-symbol-in-latex\">How to write the gradient operator symbol in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/greater-than-or-equal-to-symbol-in-latex\">How To Write The Greater Than Or Equal To Symbol In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/integer-number-symbol-in-latex\">How to write the integer number symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/less-than-symbol-in-latex\">How to write the less than symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/natural-numbers-symbol-in-latex\">How to write the Natural numbers symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/percent-symbol-in-latex\">How to write the percent symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/square-root-symbol-in-latex\">How to write the square root symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/subset-in-latex\">How To Write The Symbol For A Subset In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/therefore-in-latex\">How to write the symbol for therefore in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/mathbb-command-in-latex\">How to write with the mathbb in LaTeX?<\/a><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This article aims to show you the simplest and easiest way to write the Parallel symbol&nbsp;in LaTeX. Some symbols, you probably have never heard of, are more common than you may think in LaTeX and the parallel symbol is one of them. Today you will learn about it and how to insert it in your &#8230; <a title=\"How to write the parallel symbol\u00a0in LaTeX?\" class=\"read-more\" href=\"https:\/\/www.scijournal.org\/articles\/parallel-symbol-in-latex\" aria-label=\"Read more about How to write the parallel symbol\u00a0in LaTeX?\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":4119,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[52],"_links":{"self":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/4118"}],"collection":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/comments?post=4118"}],"version-history":[{"count":3,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/4118\/revisions"}],"predecessor-version":[{"id":5637,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/4118\/revisions\/5637"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media\/4119"}],"wp:attachment":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media?parent=4118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/categories?post=4118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/tags?post=4118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}