<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: latexteada</title>
    <description>The latest articles on DEV Community by latexteada (@latexteada).</description>
    <link>https://dev.to/latexteada</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F551438%2F148bb770-8c24-41d0-88dd-e2432ce93cd8.png</url>
      <title>DEV Community: latexteada</title>
      <link>https://dev.to/latexteada</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/latexteada"/>
    <language>en</language>
    <item>
      <title>LaTeXteada Project: Saying Goodbye</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Sat, 01 Jan 2022 15:38:47 +0000</pubDate>
      <link>https://dev.to/latexteada/latexteada-project-saying-goodbye-2hkn</link>
      <guid>https://dev.to/latexteada/latexteada-project-saying-goodbye-2hkn</guid>
      <description>&lt;p&gt;Hello, how are you? &lt;/p&gt;

&lt;p&gt;I this post I tell you the story behind this project, why did I decide to start this and what is going to be the future of this blog&lt;/p&gt;

&lt;h2&gt;
  
  
  The story behind this blog
&lt;/h2&gt;

&lt;p&gt;The first time that I heard about &lt;code&gt;LaTeX&lt;/code&gt; was in the high school, one professor told us about this, and it was interesting for me, however, I did not researched about the topic, because my math stuff was in paper. &lt;br&gt;
It was until the 2nd semester of the university where I decided to start doing my Physics Lab's reports in &lt;code&gt;LaTeX&lt;/code&gt;. At the beginning it is painful, because, I was spending more time searching &lt;em&gt;how to do ...&lt;/em&gt; than the time doing the reports, and yes, at the beginning &lt;code&gt;LaTeX&lt;/code&gt; is hard, because it is a complete new environment, you need to learn commands, expressions, etc. &lt;/p&gt;

&lt;p&gt;However I was grasping how to become more fluent, some patterns, instructions, but I just was searching on YouTube and in some other blogs, I never opened a book about &lt;code&gt;LaTex&lt;/code&gt;or took a &lt;em&gt;formal&lt;/em&gt; course. &lt;/p&gt;

&lt;p&gt;It was like 1 year later when I decided to open my first book about &lt;code&gt;LaTeX&lt;/code&gt;, it was good, because I was learning those &lt;em&gt;little details&lt;/em&gt; which make you say &lt;em&gt;Ohh I finally understand&lt;/em&gt; and I noticed that reading books was a good idea. &lt;/p&gt;

&lt;p&gt;When I attend my first course, I notice that I was already familiar with the 98% of the course, nothing special was happening with the courses, the only thing that changed was that there was a video, so I forget the courses and focused myself in the books, and I keep learning with books &lt;/p&gt;

&lt;h2&gt;
  
  
  Why did I decide to start this blog
&lt;/h2&gt;

&lt;p&gt;As I told you, I love learning from books, but I was noticing some pattern: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The information in the book &lt;em&gt;A&lt;/em&gt; was almost the same as the information of the book &lt;em&gt;B&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And it was logical, because the commands and instructions are the same, so, I decided to read one book first, write a synopsis and then start another book and just write down the information that was different from the first book, so, I read 10 pages of the book, but I only was writing 5 lines&lt;/p&gt;

&lt;p&gt;So today, but one year ago I was thinking: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I need to share this information with the people outside&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Because many information of the books lives there, in the books, and nowhere else, I decided to open my account on Twitter (to publish and have a bigger audience) and here in &lt;code&gt;dev.to&lt;/code&gt; to write the blog.&lt;/p&gt;

&lt;p&gt;What about the language? Well I decided to write this blog on English because I wanted to be practicing my writing skills, and, at a certain point, to reach more people, to have a bigger audience, and I learned something &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can not master something until you understand what you are doing &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In the first post I was just throwing content, until I decided to analyze what I was doing and how i needed to do that, I gave to the blog more structure, and fragmented it into sections&lt;/p&gt;

&lt;h2&gt;
  
  
  The future of this blog
&lt;/h2&gt;

&lt;p&gt;The first thing that I need to say is &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I won't delete this blog&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This blog is going to be open forever, the only thing that is going to change is that I won't publish anything else here, &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;This is my last post here&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;LaTeX&lt;/code&gt; is a huge world, giant. You can do all kind of stuff here, but I just wanted to talk about the common things in all the documents:&lt;/p&gt;

&lt;p&gt;Equations, tables, figures, personalize the sheet and macros &lt;/p&gt;

&lt;p&gt;And I reached that goal, and I am happy for that, because I did it in one year, but something else, I was not planning what to publish, there was not a list of &lt;em&gt;What is next&lt;/em&gt; the order of this blog is just based on my experience &lt;/p&gt;

&lt;h2&gt;
  
  
  Saying Goodbye
&lt;/h2&gt;

&lt;p&gt;I want to thank to all that people who choose to open my blog when they search something related with &lt;code&gt;LaTeX&lt;/code&gt;, to the people and organizations on Twitter which press the &lt;em&gt;retweet&lt;/em&gt; and &lt;em&gt;like&lt;/em&gt; button, to the people who followed me, to OM, JR, and CT who supported me to create and keep going with this blog and told me not to quit.&lt;/p&gt;

&lt;p&gt;I want to keep growing in this &lt;code&gt;LaTeX&lt;/code&gt; world, and, in the future do some contributions or create something for this amazing project.&lt;/p&gt;

&lt;p&gt;This is all for today, and forever&lt;/p&gt;

&lt;p&gt;Do not forget to follow me on Twitter &lt;code&gt;@latexteada&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Greetings from Mexico, see you :D&lt;/p&gt;

</description>
      <category>latex</category>
    </item>
    <item>
      <title>LaTeX: Where else can I find or use LaTeX?</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 29 Dec 2021 15:59:01 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-where-else-can-i-find-or-use-latex-3a9f</link>
      <guid>https://dev.to/latexteada/latex-where-else-can-i-find-or-use-latex-3a9f</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post I tell you &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where else you can find or use &lt;code&gt;LaTeX&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;How to use &lt;code&gt;LaTeX&lt;/code&gt; in another platforms&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Notion
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;This supports basic math environments, it is, you can not declare macros (yet) or do advanced stuff, but you can mix math with some environments that they already have&lt;/p&gt;

&lt;p&gt;You need to write the entire command in the appropriate way, otherwise, it will appear an error &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Here you can use inline equations and displayed equations&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Inline Equations&lt;/strong&gt; you need to use double &lt;code&gt;$$&lt;/code&gt; instead of one to start and end an equation &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Displayed Equations&lt;/strong&gt; you need to put &lt;code&gt;/blockequation&lt;/code&gt; and then write the desired equations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XgVN81n7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yf3j9edlpmselu2dcrvl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XgVN81n7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yf3j9edlpmselu2dcrvl.png" alt="Image description" width="880" height="193"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  SymPy
&lt;/h2&gt;

&lt;p&gt;You can get the &lt;code&gt;LaTeX&lt;/code&gt; code of an equation with a simple instruction, just follow the next steps&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Import &lt;code&gt;sympy&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Use the command &lt;code&gt;sp.latex(myExpression)&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It will give you the &lt;code&gt;LaTeX&lt;/code&gt; code of the equation&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;sympy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;sp&lt;/span&gt;

&lt;span class="n"&gt;sp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;latex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;myExpression&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--T1IO00Tg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/skw62b08l24dk4wkr04l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--T1IO00Tg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/skw62b08l24dk4wkr04l.png" alt="Image description" width="280" height="226"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Jupyter Notebooks
&lt;/h2&gt;

&lt;p&gt;If instead of getting the &lt;code&gt;LaTeX&lt;/code&gt; code you want a visualization of the expression, you need to write these lines in your Jupyter Notebook&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;sympy.interactive&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;printing&lt;/span&gt;
&lt;span class="n"&gt;printing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;init_printing&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;use_latex&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Q-a4SkBU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/058k0y1l83chu2jwp8q9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Q-a4SkBU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/058k0y1l83chu2jwp8q9.png" alt="Image description" width="465" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Detexify
&lt;/h2&gt;

&lt;p&gt;Here you can draw, yes, draw the symbol that you are searching, and this page returns the &lt;code&gt;LaTeX&lt;/code&gt; command&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JYlYLmoQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/olwbbyxw0j8dm7kjnq0q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JYlYLmoQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/olwbbyxw0j8dm7kjnq0q.png" alt="Image description" width="880" height="455"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Mathpix
&lt;/h2&gt;

&lt;p&gt;Here you can take pics of your written equations, and returns the &lt;code&gt;LaTeX&lt;/code&gt; code&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--v4WReMpj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/czylp6awdrgrddc4cy34.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--v4WReMpj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/czylp6awdrgrddc4cy34.png" alt="Image description" width="880" height="543"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Overleaf Templates
&lt;/h2&gt;

&lt;p&gt;You can find lots of templates for your work like books, cv, theses, etc. You can check that page &lt;a href="https://www.overleaf.com/latex/templates"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NWdooIF7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2kb0lrnbuya1g498gj3k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NWdooIF7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2kb0lrnbuya1g498gj3k.png" alt="Image description" width="880" height="487"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  TUG (Tex User Group)
&lt;/h2&gt;

&lt;p&gt;You can find many resources here, like documentation, help, community, you need to explore it by yourself &lt;a href="https://tug.org/"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Visual Studio Code LaTeX Extension
&lt;/h2&gt;

&lt;p&gt;It's an extension for VSCode to edit LaTeX documents, you can mix its functionality with many more extensions for VSCode, you can check it &lt;a href="https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These are my favorite resources (also the only ones which I know) if you want to share your favorite resources you can leave them in the comments section &lt;/p&gt;

&lt;p&gt;That is all for today, thanks&lt;/p&gt;

&lt;p&gt;Do not forget to follow me on Twitter `&lt;a class="mentioned-user" href="https://dev.to/latexteada"&gt;@latexteada&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Greetings :)&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>latex</category>
    </item>
    <item>
      <title>LaTeX: The theorem Like Environment</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 22 Dec 2021 15:45:56 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-the-theorem-like-environment-55ni</link>
      <guid>https://dev.to/latexteada/latex-the-theorem-like-environment-55ni</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post I talk about&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to declare &lt;em&gt;theorem&lt;/em&gt; like environments &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In past post I have talked about macros, but these just are instructions, they are shortens to do something bigger and avoid writing the same instruction many times, what about if we want to create environments?&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;theorem&lt;/em&gt; like environment is an environment which you can personalize to be numbered according to a certain enumeration, this is useful because you can have the same format to different mathematical proofs, theorems, lemmas, etc, and instead of declaring or writing the same instruction, you just call the environment and it's all &lt;/p&gt;

&lt;h2&gt;
  
  
  The &lt;code&gt;theorem&lt;/code&gt; environment
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;We say that it is a &lt;code&gt;theorem&lt;/code&gt; environment because it is the name of the command, as you are about to notice, but you can create Lemmas, Proofs, and many other stuff, it is just a matter that you put the appropriate name to that&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The general instruction is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\newtheorem&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;name&lt;span class="p"&gt;}{&lt;/span&gt;print&lt;span class="p"&gt;}&lt;/span&gt;[numbered]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;name&lt;/code&gt; is the name of the environment&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;print&lt;/code&gt; is the word to be shown in the document&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;numbered&lt;/code&gt; is the sectional unit based on
which the environments is to be numbered (this is optional, you can see it because it has &lt;code&gt;[]&lt;/code&gt; instead of &lt;code&gt;{}&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An example &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj3m2luz4x0px5syaryj8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj3m2luz4x0px5syaryj8.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Produces &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuk5n7l9aje7ens3hbhti.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuk5n7l9aje7ens3hbhti.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See? the environment puts a default enumeration, in this case, it has not any reference, but, in &lt;code&gt;numbered&lt;/code&gt; we can put according to what we want that enumeration, for example&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;section&lt;/code&gt; for section&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;subsection&lt;/code&gt; for subsection &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5ut901p7s8qzzm2xbjey.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5ut901p7s8qzzm2xbjey.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Produces&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6bpd1vuu2t9iukz777t4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6bpd1vuu2t9iukz777t4.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can play with this!! &lt;/p&gt;

&lt;h2&gt;
  
  
  Referencing to a &lt;em&gt;theorem&lt;/em&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Remember that we say &lt;em&gt;theorem&lt;/em&gt; because it is the name of the command&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Do you remember the instruction &lt;code&gt;ref&lt;/code&gt; and &lt;code&gt;label&lt;/code&gt;, if not you can check them &lt;a href="https://dev.to/latexteada/latex-cross-referencing-2jga"&gt;here&lt;/a&gt; and &lt;a href="https://dev.to/latexteada/latex-cross-referencing-how-to-call-elements-1346"&gt;here&lt;/a&gt;, there are good news, you can refer theorems too, the suggested way to call theorems and mathematical stuff is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\eqref&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;name&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Remember to import the &lt;code&gt;amsmath&lt;/code&gt; package in the preamble&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Where &lt;code&gt;name&lt;/code&gt; is the name of the label, let's see some examples &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6qtqfglwln9fh249ggof.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6qtqfglwln9fh249ggof.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Produces&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo2ibouzxlo5fvsb40g34.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo2ibouzxlo5fvsb40g34.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Did you see, the &lt;code&gt;eqref&lt;/code&gt; adds some parentheses&lt;/p&gt;

&lt;p&gt;Some conventions to use while &lt;em&gt;labeling&lt;/em&gt; the &lt;em&gt;theorem&lt;/em&gt; are &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;thm&lt;/code&gt; theorem&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;prop&lt;/code&gt; proposition&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;dfn&lt;/code&gt; definition&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;prf&lt;/code&gt; proof&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cor&lt;/code&gt; corollary&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;princ&lt;/code&gt; principle&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;lem&lt;/code&gt; lemma&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Useful Tricks
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Names of the &lt;em&gt;theorems&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;What if we want to be more specific in a theorem? What if we want to add a &lt;em&gt;name&lt;/em&gt;, well we have two options, use &lt;code&gt;[]&lt;/code&gt; or &lt;code&gt;()&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F217kz7nc8zdrxn7u8epk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F217kz7nc8zdrxn7u8epk.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Produces &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fihw5yxekq79ae7nxa5rj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fihw5yxekq79ae7nxa5rj.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Delete the cursive
&lt;/h3&gt;

&lt;p&gt;When we are using any math theorem it puts the mathematical equations in cursive, and the &lt;em&gt;theorems&lt;/em&gt; are in cursive, it is a mess because sometimes it is difficult to differentiate between normal text and math stuff, so, if we want to delete the cursive in the &lt;em&gt;theorems&lt;/em&gt; we just need to add&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\usepackage&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;amsthm&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\theoremstyle&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;definition&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6lhetwqt6dp1chymm36l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6lhetwqt6dp1chymm36l.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Produces&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsgj77qzjx0gpuspi66ja.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsgj77qzjx0gpuspi66ja.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We need to import the &lt;code&gt;amsthm&lt;/code&gt; package and if we put the environment before &lt;code&gt;\theoremstyle{definition}&lt;/code&gt; it won't be affected, but if we put the environment after it it will be affected&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>latex</category>
    </item>
    <item>
      <title>LaTeX: The include Command</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 15 Dec 2021 16:03:56 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-the-include-command-38kk</link>
      <guid>https://dev.to/latexteada/latex-the-include-command-38kk</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post I talk about&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;\include&lt;/code&gt; command&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;The last posts of this blog have been about &lt;em&gt;Macros&lt;/em&gt; we have checked some variants of macros and we have seen that these are declared in the preamble of our document, so, if we want to declare a new macros we must go to the preamble, declare them there and then go back to our document, everything is fine. &lt;/p&gt;

&lt;p&gt;But what happens if we need to declare the same macros in another document, and in another and so on, it will be a headache because we need to declare them in each document that we create. There must be an easy way to do it, and this is the main topic, or purpose, of this post is to teach you a very useful instruction, the &lt;code&gt;\include&lt;/code&gt; command &lt;/p&gt;

&lt;h2&gt;
  
  
  The &lt;code&gt;include&lt;/code&gt; command
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Here we are going to use this command to include the macros and other environments that we will see in the following posts, but this command has another functionalities, which are not related with this topic&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;This command is declared in the preamble&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As its name suggest it &lt;em&gt;includes&lt;/em&gt; the content of other &lt;code&gt;.tex&lt;/code&gt; (The extension of the &lt;code&gt;LaTeX&lt;/code&gt; document) document into our current document, the command is simple&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\include&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;pathOfFile/nameOfFile&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Including a file with &lt;code&gt;include&lt;/code&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Do not forget to add the extension of the file, in this case, it is &lt;code&gt;.tex&lt;/code&gt; If you do not add it you will get an error&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We have seen that the command to include a file is &lt;code&gt;\include{}&lt;/code&gt; but we need to give the &lt;code&gt;pathOfFile&lt;/code&gt; it is the &lt;strong&gt;location&lt;/strong&gt; of our file that we want to import to our current file, and there are three possibilities &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;File in the same location where we are working&lt;/strong&gt; We just need to put the name of the file
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\include&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;myFile.tex&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;File in the same location but inside another folder&lt;/strong&gt; We need to put the route to the file, indicating the name of the folder in the path.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's suppose my folder's name is &lt;code&gt;myFolder&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\include&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;myFolder/myFile.tex&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;If it is inside multiple folders we just put the name of all the folders where it is and then the name of the file&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\include&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;myFolder/.../myFile.tex&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where the &lt;code&gt;...&lt;/code&gt; is the short for all the folders, but you &lt;strong&gt;must&lt;/strong&gt; put the name of all the folders &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;File in a different location&lt;/strong&gt; Here we need to put the specific route where the file is. In the last point we see that to go &lt;em&gt;deeper&lt;/em&gt; we need to put the name of the folders, now to go &lt;em&gt;backward&lt;/em&gt; we need to use &lt;code&gt;..&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\include&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;../myFolder/myFile.tex&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is all for today, thanks &lt;/p&gt;

&lt;p&gt;Do not forget to follow me on twitter &lt;code&gt;@latexteada&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Greetings :) &lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>latex</category>
    </item>
    <item>
      <title>LaTeX &amp; Macros: Macros with repeated arguments</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 08 Dec 2021 15:50:56 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-macros-macros-with-repeated-arguments-26fj</link>
      <guid>https://dev.to/latexteada/latex-macros-macros-with-repeated-arguments-26fj</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post I tell you &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to declare a macros with repeated arguments &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We have seen &lt;a href="https://dev.to/latexteada/latex-macros-creating-macros-macros-without-arguments-4338"&gt;how to declare macros&lt;/a&gt;, &lt;a href="https://dev.to/latexteada/latex-macros-macros-with-arguments-2a42"&gt;how to declare macros with arguments&lt;/a&gt;, &lt;a href="https://dev.to/latexteada/latex-macros-math-in-macros-1b1d"&gt;how to put math in macros&lt;/a&gt;, and &lt;a href="https://dev.to/latexteada/latex-macros-macros-with-optional-arguments-1he"&gt;how to declare macros with optional arguments&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;But what if there is a symbol or parameter which appears multiple times in your macros? Do we need to write it each time it appears in our macros? It would be a waste of time!!!, fortunately we can declare a &lt;em&gt;repeated argument&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Macros with repeated arguments
&lt;/h2&gt;

&lt;p&gt;We just need to put multiple times the argument that we want to repeat in the positions where it must be. Let's see an example &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Z-vDfbbI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m9bzzhhkhyr8ck5kw30h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Z-vDfbbI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m9bzzhhkhyr8ck5kw30h.png" alt="Image description" width="880" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's check this code, here I declare the instruction &lt;code&gt;\dint&lt;/code&gt; as short of &lt;em&gt;definite integral&lt;/em&gt; with 4 arguments&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The function to be integrated&lt;/li&gt;
&lt;li&gt;Here is the &lt;em&gt;repeated argument&lt;/em&gt; it is the variable by which the integral will be done, after the differential, and under the integral symbol&lt;/li&gt;
&lt;li&gt;Inferior limit&lt;/li&gt;
&lt;li&gt;Superior limit&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It produces &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2RWAX0yz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2xde43eo75lwfnmd0gly.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2RWAX0yz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2xde43eo75lwfnmd0gly.png" alt="Image description" width="372" height="123"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See? you just need to put the variable once and it appears in two places&lt;/p&gt;

&lt;p&gt;Play with this macros and discover its limits&lt;/p&gt;

&lt;p&gt;This is all for today. &lt;/p&gt;

&lt;p&gt;Do not forget to follow me on Twitter &lt;code&gt;@latexteada&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;See you. Greetings :) &lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>latex</category>
    </item>
    <item>
      <title>LaTeX &amp; Macros: Macros with Optional Arguments</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 01 Dec 2021 17:28:52 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-macros-macros-with-optional-arguments-1he</link>
      <guid>https://dev.to/latexteada/latex-macros-macros-with-optional-arguments-1he</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post I tell you &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to create macros with optional arguments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We have seen that we can create our own instructions, &lt;a href="https://dev.to/latexteada/latex-macros-creating-macros-macros-without-arguments-4338"&gt;macros without arguments&lt;/a&gt;, and &lt;a href="https://dev.to/latexteada/latex-macros-macros-with-arguments-2a42"&gt;macros with arguments&lt;/a&gt;. Sometimes is convenient to set a &lt;em&gt;default argument&lt;/em&gt; in a macros and modify it just when we need it, that is what we are going to learn today &lt;/p&gt;

&lt;h2&gt;
  
  
  Optional Arguments
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Macros with one argument
&lt;/h3&gt;

&lt;p&gt;The general structure of that is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\newcommand&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;name&lt;span class="p"&gt;}&lt;/span&gt;[Narg][default]&lt;span class="p"&gt;{&lt;/span&gt;instructions&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;name&lt;/code&gt; is the name of the command&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Narg&lt;/code&gt; is the number of arguments &lt;/li&gt;
&lt;li&gt;
&lt;code&gt;default&lt;/code&gt; is going to be the value which will be the default value, but, also, the argument which will change&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;instructions&lt;/code&gt; is what the command will do &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AvpB0U0j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m2wekdh20bhzhu7991xj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AvpB0U0j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m2wekdh20bhzhu7991xj.png" alt="Image description" width="880" height="725"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Produces &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hUc5bCqS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p72y2ge0yp1h18lq39jn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hUc5bCqS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p72y2ge0yp1h18lq39jn.png" alt="Image description" width="241" height="87"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Did you notice? If we want to change the argument we use &lt;code&gt;[]&lt;/code&gt; instead of &lt;code&gt;{}&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If we do not specify the argument it will show the default command, but if we change, the instruction will change &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Macros with multiple arguments
&lt;/h3&gt;

&lt;p&gt;We already know how to &lt;em&gt;set an optional argument&lt;/em&gt; but with macros with one argument, what if we want a macros with multiple argument?&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Only the first argument&lt;/em&gt;&lt;/strong&gt; may be optional&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9IbnxjY8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ttt442c8ln35645jc319.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9IbnxjY8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ttt442c8ln35645jc319.png" alt="Image description" width="880" height="474"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Produces &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vAL8EQ0Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sfhafrqg4zmok7qink3l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vAL8EQ0Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sfhafrqg4zmok7qink3l.png" alt="Image description" width="271" height="105"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We need to call the optional argument with &lt;code&gt;[]&lt;/code&gt; as the previous example&lt;/p&gt;

&lt;p&gt;This is all for today. &lt;/p&gt;

&lt;p&gt;Do not forget to follow me on Twitter &lt;code&gt;@latexteada&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Greetings :)   &lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>latex</category>
    </item>
    <item>
      <title>LaTeX &amp; Macros: Math in Macros</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 24 Nov 2021 15:54:02 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-macros-math-in-macros-1b1d</link>
      <guid>https://dev.to/latexteada/latex-macros-math-in-macros-1b1d</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post you I tell you &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to put or declare math in a macro &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;We have checked two types of macros &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Macros without arguments&lt;/li&gt;
&lt;li&gt;Macros with arguments&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And, we have seen that they help us to avoid repeating the same structure many times, but with normal text, not with math. &lt;/p&gt;

&lt;h2&gt;
  
  
  Math in macros
&lt;/h2&gt;

&lt;p&gt;Today we will meet the instruction&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\ensuremath&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;myEquation&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command allow us to define macros with math which works in text and math modes, the general structure is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\newcommand&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\name&lt;/span&gt;&lt;span class="p"&gt;}{&lt;/span&gt;&lt;span class="k"&gt;\ensuremath&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;myEquation&lt;span class="p"&gt;}}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, you could had thought, &lt;em&gt;I just put the instructions between &lt;code&gt;$&lt;/code&gt; and it is all&lt;/em&gt; but no, because if you do that in the macros, in the normal text you need to put the math between &lt;code&gt;$&lt;/code&gt; too, and it is not correct&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Nwa30JXU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2t6m0qtljp9866dttrrv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Nwa30JXU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2t6m0qtljp9866dttrrv.png" alt="Image description" width="880" height="646"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here I declared the macro with math using our new instruction, it produces &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bKZDZ3eO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jpwn5u6s72ka174f43w0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bKZDZ3eO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jpwn5u6s72ka174f43w0.png" alt="Image description" width="318" height="81"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Did you notice, with &lt;code&gt;ensuremath&lt;/code&gt; you can use your command either between &lt;code&gt;$&lt;/code&gt; or without them&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The recommendation is to use the math inside the &lt;code&gt;$&lt;/code&gt; symbols or &lt;code&gt;\[\]&lt;/code&gt; as we have seen, to have an order and know when something is about math and when it is not related with math &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://texlive.net/run?%5Cdocumentclass%7Barticle%7D%0A%0A%25Declare%20the%20macros%20here,%20do%20not%20forget%20the%20structure%0A%0A%5Cnewcommand%7B%5CFirstExample%7D%5B1%5D%7B%5Censuremath%7B%7Bx%7D%5E%7B%231%7D%7D%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%0AThis%20is%20a%20quadratic%20equation%20%24%5CFirstExample%7B2%7D%24%0A%0A%5Cend%7Bdocument%7D"&gt;Here&lt;/a&gt; is an example where you can play. &lt;/p&gt;

&lt;p&gt;What happens if you do not use &lt;code&gt;ensuremath&lt;/code&gt; and want to use a math expression without using &lt;code&gt;$&lt;/code&gt;? &lt;/p&gt;

&lt;p&gt;This is all for today&lt;/p&gt;

&lt;p&gt;Do not forget to follow me on Twitter &lt;code&gt;@latexteada&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Greetings :) &lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>latex</category>
    </item>
    <item>
      <title>LaTeX &amp; Macros: Macros with Arguments</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 17 Nov 2021 16:42:19 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-macros-macros-with-arguments-2a42</link>
      <guid>https://dev.to/latexteada/latex-macros-macros-with-arguments-2a42</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post I tell you &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to declare macros with arguments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do you remember that in &lt;a href="https://dev.to/latexteada/latex-macros-creating-macros-macros-without-arguments-4338"&gt;this&lt;/a&gt; post I gave you a brief introduction to Macros without arguments, these are helpful in those situations where you need the same expression multiple times, but what if you need to have the same expression but just modify something?&lt;/p&gt;

&lt;h2&gt;
  
  
  How to declare macros with arguments
&lt;/h2&gt;

&lt;p&gt;The command is the following &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;

&lt;span class="k"&gt;\newcommand&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;[args]&lt;span class="p"&gt;{&lt;/span&gt;expr&lt;span class="p"&gt;}&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;\name&lt;/code&gt; is the name of the command &lt;/li&gt;
&lt;li&gt;
&lt;code&gt;args&lt;/code&gt; is the number of arguments in the command, top 9&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;expr&lt;/code&gt; is the expression to manipulate&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You already know what is &lt;code&gt;\name&lt;/code&gt;, but if you have forgotten it, you can check it &lt;a href="https://dev.to/latexteada/latex-macros-creating-macros-macros-without-arguments-4338"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;args&lt;/code&gt;, this is the number of arguments in the command, in other words, the &lt;em&gt;blanks&lt;/em&gt; to be filled&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you want 1 argument you put 1, if you want 2 put 2 and so on. &lt;strong&gt;&lt;em&gt;The maximum number of arguments is 9&lt;/em&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;The same number of arguments declared in &lt;code&gt;args&lt;/code&gt; must match with the arguments used in the definition of &lt;code&gt;expr&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;To put the position of the commands, we need to use &lt;code&gt;#&lt;/code&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;The arguments have an order&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Let's see some examples to clarify the information &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8xhsztf1oc1r79njr4zq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8xhsztf1oc1r79njr4zq.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's analyze the code :) &lt;/p&gt;

&lt;p&gt;Here I declare two new commands &lt;/p&gt;

&lt;p&gt;The command &lt;code&gt;\oneArg&lt;/code&gt; has &lt;strong&gt;one&lt;/strong&gt; argument (&lt;em&gt;Which is declared in the square brackets&lt;/em&gt;) and this argument is going to be the exponent of &lt;em&gt;x&lt;/em&gt;. Can you notice, there is a &lt;code&gt;#&lt;/code&gt; this indicates &lt;em&gt;Here is going to be my argument&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The command &lt;code&gt;\twoArgs&lt;/code&gt; has &lt;strong&gt;two&lt;/strong&gt; arguments, one is going to be the variable, and the second is going to be the exponent, again, I use &lt;code&gt;#&lt;/code&gt; to say &lt;em&gt;Here is going to be my argument&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;See, when I use these new commands, check that &lt;code&gt;\oneArg&lt;/code&gt; has one curly brackets while &lt;code&gt;\twoArgs&lt;/code&gt; has two curly brackets&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The curly brackets match with the number of arguments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That code produces &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8yjugdimjwxin9biciwx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8yjugdimjwxin9biciwx.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But wait, do you remember that the arguments have an order while declaring them, let's check it&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbfun7zgdqxx3zsnnsipj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbfun7zgdqxx3zsnnsipj.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we have two new commands &lt;code&gt;\first&lt;/code&gt; and &lt;code&gt;\second&lt;/code&gt; they have two arguments, but there are a subtle difference, did you notice it? Yes &lt;strong&gt;&lt;em&gt;The position of the arguments&lt;/em&gt;&lt;/strong&gt; Let's see what is the output &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg0ezw0068e32cjtgyob0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg0ezw0068e32cjtgyob0.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now you have grasped what &lt;em&gt;have an order&lt;/em&gt; means &lt;/p&gt;

&lt;p&gt;This is all :) &lt;/p&gt;

&lt;p&gt;Thanks for reading. &lt;/p&gt;

&lt;p&gt;Do not forget to follow me on Twitter &lt;code&gt;@latexteada&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Greetings :) &lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>latex</category>
    </item>
    <item>
      <title>LaTeX &amp; Macros: Creating Macros &amp; Macros without arguments</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 10 Nov 2021 16:03:11 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-macros-creating-macros-macros-without-arguments-4338</link>
      <guid>https://dev.to/latexteada/latex-macros-creating-macros-macros-without-arguments-4338</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post I tell you &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to declare the macros, and where &lt;/li&gt;
&lt;li&gt;How to create macros, in this time, macro without arguments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's Start!!!&lt;/p&gt;

&lt;h2&gt;
  
  
  Declaring Macros
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;This is valid for any kind of macros, but in this post I just talk about macros without arguments &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;First of all, you need to know that &lt;strong&gt;The names of the macros &lt;em&gt;must not&lt;/em&gt; match with existing ones&lt;/strong&gt;, so you will have an error if you create a macros with the &lt;code&gt;equation&lt;/code&gt; name.&lt;/p&gt;

&lt;p&gt;Macros are declared in the preamble, the syntax is the following&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\newcommand&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\name&lt;/span&gt;&lt;span class="p"&gt;}{&lt;/span&gt;task&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where&lt;/p&gt;

&lt;p&gt;-&lt;code&gt;\name&lt;/code&gt; is the way you will call the macro in your text &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Be careful&lt;/strong&gt; you need to use the &lt;code&gt;\&lt;/code&gt; when declaring the macro, because now that word is going to be the name of the instruction &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;-&lt;code&gt;task&lt;/code&gt; are the actions that the macro will perform&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Here you can use normal text or instructions already defined &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Creating macros
&lt;/h2&gt;

&lt;p&gt;Let's create our first macros, with name &lt;code&gt;\post&lt;/code&gt; and the &lt;code&gt;action&lt;/code&gt; that prints &lt;em&gt;Hello&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn19qm1pt6eba48n8a2gv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn19qm1pt6eba48n8a2gv.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Produces &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fskypnxufow4ko114yf9v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fskypnxufow4ko114yf9v.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://texlive.net/run?%5Cdocumentclass%7Barticle%7D%0A%0A%25Declare%20the%20macros%20here,%20do%20not%20forget%20the%20structure%0A%0A%5Cnewcommand%7B%5CFirstExample%7D%7BGreetings%20people%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%0AThis%20is%20my%20first%20example%20%5CFirstExample%0A%0A%5Cend%7Bdocument%7D" rel="noopener noreferrer"&gt;Here&lt;/a&gt; is an example, where you can play and modify &lt;/p&gt;

&lt;p&gt;But, you can create macros with &lt;code&gt;LaTeX&lt;/code&gt; commands&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frwkxf3g14i72h6sdeoud.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frwkxf3g14i72h6sdeoud.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Produces &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxuleo9bk9wiw5sm3ll41.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxuleo9bk9wiw5sm3ll41.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://texlive.net/run?%5Cdocumentclass%7Barticle%7D%0A%0A%25Declare%20the%20macros%20here,%20do%20not%20forget%20the%20structure%0A%0A%5Cnewcommand%7B%5CFirstExample%7D%7BGreetings%20people%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%0AThis%20is%20my%20first%20example%20%5CFirstExample%0A%0A%5Cend%7Bdocument%7D" rel="noopener noreferrer"&gt;Here&lt;/a&gt; is an example, where you can play and modify&lt;/p&gt;

&lt;p&gt;This is the most basic macros, there are more, but these are for other post.&lt;/p&gt;

&lt;p&gt;This is all!!!&lt;/p&gt;

&lt;p&gt;Do not forget to follow me on Twitter &lt;code&gt;@latexteada&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Greetings :) &lt;/p&gt;

</description>
      <category>latex</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>LaTeX &amp; Macros: The Idea</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 03 Nov 2021 15:55:08 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-macros-the-idea-4mi7</link>
      <guid>https://dev.to/latexteada/latex-macros-the-idea-4mi7</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post I tell you about Macros. You will discover if these are useful for you and if you need these. Let's start!!!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Remember that these Macros are for &lt;code&gt;LaTeX&lt;/code&gt; there are other softwares that use macros, but we are talking about &lt;code&gt;LaTeX&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What are the Macros?
&lt;/h2&gt;

&lt;p&gt;A macro is a set of instructions, which will be executed when we write a command.&lt;br&gt;
We need to create these instructions and give them the steps which will be performed when we call this instruction &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In &lt;code&gt;LaTeX&lt;/code&gt; we can create macros to write equations, words, environments, multi-argument equations, environments, etc.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How do I know if I need macros?
&lt;/h2&gt;

&lt;p&gt;This is a natural question, well, to answer it, let me tell you, check the definition again. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You could use a macro if your document has many repetitive structures&lt;/li&gt;
&lt;li&gt;To save time writing different structures, or equations&lt;/li&gt;
&lt;li&gt;In the math context, you need to put the same equation in many places&lt;/li&gt;
&lt;li&gt;To insert figures in a fast way&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But if you just need to do it once in your document, just do it in the normal way, it could be more efficient instead of declaring your macros.&lt;/p&gt;

&lt;p&gt;There are different kinds of macros, without arguments, a single argument, multiple arguments, optional arguments, we will check them here.&lt;br&gt;
Declaring macros is easy, you do not need to be worried about this, but this is topic for the next post. &lt;/p&gt;

&lt;p&gt;This is all!!!&lt;/p&gt;

&lt;p&gt;Do not forget to follow me on Twitter &lt;code&gt;@latexteada&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Greetings :) &lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>latex</category>
    </item>
    <item>
      <title>LaTeX: Customizing the Page</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 27 Oct 2021 14:36:04 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-customizing-the-page-4e1b</link>
      <guid>https://dev.to/latexteada/latex-customizing-the-page-4e1b</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post I tell you how to change the position of the numbers in your document or delete them. Let's start!!!&lt;/p&gt;

&lt;p&gt;Let me introduce you to the instruction&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\thispagestyle&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;STYLE&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where &lt;em&gt;STYLE&lt;/em&gt; can be &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;empty&lt;/code&gt; no header, no footer&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;plain&lt;/code&gt; the page number is on the footer&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;headings&lt;/code&gt; the page number is on the header&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can put that instruction in every single page of your document, or you in some of them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://texlive.net/run?%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5Cthispagestyle%7Bempty%7D%0A%0AHello%0A%0A%5Cnewpage%0A%0A%5Cthispagestyle%7Bheadings%7D%0A%0APeople%0A%0A%5Cnewpage%0A%0A%5Cthispagestyle%7Bplain%7D%0A%0AGreetings%0A%0A%5Cend%7Bdocument%7D"&gt;Here&lt;/a&gt; is an exaple, you can play with it and use all the commands. &lt;/p&gt;

&lt;p&gt;This is all for today, thank you!!!&lt;/p&gt;

&lt;p&gt;Do not forget to follow me on Twitter &lt;code&gt;@latexteada&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Greetings :) &lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>latex</category>
    </item>
    <item>
      <title>LaTeX: Numbering the Pages &amp; Customization</title>
      <dc:creator>latexteada</dc:creator>
      <pubDate>Wed, 20 Oct 2021 15:21:09 +0000</pubDate>
      <link>https://dev.to/latexteada/latex-numbering-the-pages-customization-4ng0</link>
      <guid>https://dev.to/latexteada/latex-numbering-the-pages-customization-4ng0</guid>
      <description>&lt;p&gt;Hello, how are you? :) &lt;/p&gt;

&lt;p&gt;In this post I tell you&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to start the page numbering from other number, different of 1&lt;/li&gt;
&lt;li&gt;How to mix the numbering style and the page numbering&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's start!!!&lt;/p&gt;

&lt;h2&gt;
  
  
  Page Numbering
&lt;/h2&gt;

&lt;p&gt;Do you remember that in &lt;a href="https://dev.to/latexteada/latex-numbering-the-pages-1k1a"&gt;this&lt;/a&gt; post I tell you how to customize the style of the numbering in the page, now you can use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\setcounter&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;page&lt;span class="p"&gt;}{&lt;/span&gt;n&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where &lt;strong&gt;&lt;em&gt;n&lt;/em&gt;&lt;/strong&gt; is the desired starting page number&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If we put this instruction in the preamble the starting page of the document is going to be &lt;strong&gt;&lt;em&gt;n&lt;/em&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But we can put this instruction on the body of our document and have different enumerations inside the document &lt;/p&gt;

&lt;h2&gt;
  
  
  Mixing Styles
&lt;/h2&gt;

&lt;p&gt;What if I want to have multiple styles of numbering in my document, we first need to put the style and then the number, it is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;&lt;span class="k"&gt;\pagenumbering&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;style&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\setcounter&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;page&lt;span class="p"&gt;}{&lt;/span&gt;n&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;You can check the &lt;em&gt;style&lt;/em&gt; &lt;a href="https://dev.to/latexteada/latex-numbering-the-pages-1k1a"&gt;here&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftyv64lj1ffkl32ltl0od.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftyv64lj1ffkl32ltl0od.png" alt="Code to try"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check this code by yourself :) &lt;/p&gt;

&lt;p&gt;This is all, thank you!!!&lt;/p&gt;

&lt;p&gt;Do not forget to follow me on Twitter &lt;code&gt;@latexteada&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Greetings :) &lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>latex</category>
    </item>
  </channel>
</rss>
