<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Latex on Ben&#39;s Blog</title>
    <link>https://jinpeng.cv/en/tags/latex/</link>
    <description>Recent content in Latex on Ben&#39;s Blog</description>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <copyright>©️ 2025 Ben</copyright>
    <lastBuildDate>Mon, 09 Mar 2026 22:26:59 -0600</lastBuildDate>
    <atom:link href="https://jinpeng.cv/en/tags/latex/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>2025-11-23</title>
      <link>https://jinpeng.cv/en/diary/2025/november/2025-11-23/</link>
      <pubDate>Sun, 23 Nov 2025 18:58:53 -0700</pubDate>
      <guid>https://jinpeng.cv/en/diary/2025/november/2025-11-23/</guid>
      <description>&lt;p&gt;I did the presentation all day.&lt;/p&gt;
&lt;h3 id=&#34;1859-adjust-the-fontsize-in-beamer&#34;&gt;18:59 Adjust the fontsize in Beamer&lt;/h3&gt;
&lt;p&gt;It&amp;rsquo;s hard to adjust fontsize in beamer, especially using Quarto as  the writer.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt; 1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 6
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 7
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 8
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 9
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;10
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;11
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;12
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;13
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;14
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;15
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;16
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;17
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;18
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;19
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-latex&#34; data-lang=&#34;latex&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;```&lt;span class=&#34;nb&#34;&gt;{&lt;/span&gt;=latex&lt;span class=&#34;nb&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;\begingroup&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;\fontsize&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;{&lt;/span&gt;6&lt;span class=&#34;nb&#34;&gt;}{&lt;/span&gt;8&lt;span class=&#34;nb&#34;&gt;}&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;\selectfont&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;\color&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;{&lt;/span&gt;red&lt;span class=&#34;nb&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;```
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Target content
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;```&lt;span class=&#34;nb&#34;&gt;{&lt;/span&gt;=latex&lt;span class=&#34;nb&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;\endgroup&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;```
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;I found we can easily to control the style on some specific content. It was defined at &lt;a href=&#34;https://www.google.com/search?q=https://quarto.org/docs/authoring/markdown-basics.html%23raw-content&#34;&gt;Authoring &amp;gt; Markdown Basics &amp;gt; Raw Content&lt;/a&gt; This method can disable &lt;code&gt;raw_text&lt;/code&gt; to avoid output the command, refer to &lt;a href=&#34;https://pandoc.org/MANUAL.html#raw-htmltex&#34;&gt;Pandoc - Pandoc User’s Guide&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I did the presentation all day.</p>
<h3 id="1859-adjust-the-fontsize-in-beamer">18:59 Adjust the fontsize in Beamer</h3>
<p>It&rsquo;s hard to adjust fontsize in beamer, especially using Quarto as  the writer.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-latex" data-lang="latex"><span class="line"><span class="cl">```<span class="nb">{</span>=latex<span class="nb">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">\begingroup</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">\fontsize</span><span class="nb">{</span>6<span class="nb">}{</span>8<span class="nb">}</span><span class="k">\selectfont</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">\color</span><span class="nb">{</span>red<span class="nb">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">```
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Target content
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">```<span class="nb">{</span>=latex<span class="nb">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">\endgroup</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">```
</span></span></code></pre></td></tr></table>
</div>
</div><p>I found we can easily to control the style on some specific content. It was defined at <a href="https://www.google.com/search?q=https://quarto.org/docs/authoring/markdown-basics.html%23raw-content">Authoring &gt; Markdown Basics &gt; Raw Content</a> This method can disable <code>raw_text</code> to avoid output the command, refer to <a href="https://pandoc.org/MANUAL.html#raw-htmltex">Pandoc - Pandoc User’s Guide</a></p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-latex" data-lang="latex"><span class="line"><span class="cl"><span class="k">\tiny</span><span class="nb">{}</span>
</span></span><span class="line"><span class="cl">Target content
</span></span></code></pre></td></tr></table>
</div>
</div><p>Furthermore, I still can create some <code>\newcommand</code> at <code>header-includes</code> or <code>preamble.tex</code>, and then I can use the new command in whole document. It was defined at <a href="https://www.google.com/search?q=https://quarto.org/docs/reference/formats/pdf.html%23includes">Reference &gt; Formats &gt; PDF &gt; Includes</a></p>
<h2 id="how-to-give-a-presentation">How to give a presentation</h2>
<h3 id="introduction">Introduction</h3>
<p>Hello everyone, my name is Jinpeng,<br>
and today I&rsquo;m going to talk about <em>topic</em><br>
- going to give a presentation about/on <em>topic</em><br>
- going to share about <em>topic</em></p>
<p>The presentation will be in <em># parts</em><br>
First&hellip; Second&hellip; Third&hellip;<br>
The presentation will be cover <em>subtopic 1, subtopic 2&hellip; and subtopic 3</em>.</p>
<p>* Please feel free to ask questions during the presentation<br>
or please hold your questions until the end of the presentation</p>
<h3 id="sequencetransition-words">Sequence/Transition words</h3>
<p>First, I&rsquo;d like to talk about <em>subtopic 1</em><br>
Why is this important?<br>
What do we need to know?<br>
In conclusion/In sum/To conclude, main point about <em>subtopic 1</em> (to reiterate, to say something again)<br>
&hellip;<br>
Okay, now I&rsquo;d like to move on to <em>subtopic 2</em>.<br>
Lastly, I&rsquo;d like to talk about <em>subtopic 3</em>.</p>
<ul>
<li>First, second, third, fourth&hellip;</li>
<li>Next, then, after that, last/lastly&hellip;</li>
<li>Additionally, moreover, furthermore&hellip;</li>
</ul>
<h3 id="conclusions-and-qa">Conclusions and Q&amp;A</h3>
<p>I&rsquo;d like to conclude today&rsquo;s presentation by summarizing the information.</p>
<p>To end today&rsquo;s presentation&hellip;</p>
<p>Q&amp;A: If there are any questions, I&rsquo;d be happy to address them.</p>
]]></content:encoded>
    </item>
    <item>
      <title>2025-11-20</title>
      <link>https://jinpeng.cv/en/diary/2025/november/2025-11-20/</link>
      <pubDate>Thu, 20 Nov 2025 00:12:47 -0700</pubDate>
      <guid>https://jinpeng.cv/en/diary/2025/november/2025-11-20/</guid>
      <description>&lt;h2 id=&#34;i-like-coding&#34;&gt;I like coding&lt;/h2&gt;
&lt;p&gt;Thursdays are tiring days because I usually got insomnia on Wednesdays. The most critical thing is that there is the concrete class till 8 PM every Thursday, which is accompanied with hunger, tiring and boring.&lt;/p&gt;
&lt;p&gt;Today I finished the assignment 5 of mining, and made a Tex template of Quarto for assignment. It&amp;rsquo;s really useful for produce documents. I will keep learning Latex in the future.&lt;/p&gt;
&lt;h2 id=&#34;grammar-check&#34;&gt;Grammar check&lt;/h2&gt;
&lt;p&gt;Here&amp;rsquo;s a grammar and clarity check for your diary entry:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<h2 id="i-like-coding">I like coding</h2>
<p>Thursdays are tiring days because I usually got insomnia on Wednesdays. The most critical thing is that there is the concrete class till 8 PM every Thursday, which is accompanied with hunger, tiring and boring.</p>
<p>Today I finished the assignment 5 of mining, and made a Tex template of Quarto for assignment. It&rsquo;s really useful for produce documents. I will keep learning Latex in the future.</p>
<h2 id="grammar-check">Grammar check</h2>
<p>Here&rsquo;s a grammar and clarity check for your diary entry:</p>
<table>
  <thead>
      <tr>
          <th>Original</th>
          <th>Correct</th>
          <th>Reason</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>&ldquo;Thursdays are tiring days because I usually got insomnia on Wednesdays.&rdquo;</td>
          <td>&ldquo;Thursdays are tiring because I usually get insomnia on Wednesdays.&rdquo;</td>
          <td>&ldquo;Got&rdquo; should be present tense &ldquo;get&rdquo; to match &ldquo;usually&rdquo;. &ldquo;Tiring days&rdquo; is redundant - just &ldquo;tiring&rdquo; is more natural.</td>
      </tr>
      <tr>
          <td>&ldquo;The most critical thing is that there is the concrete class till 8 PM every Thursday, which is accompanied with hunger, tiring and boring.&rdquo;</td>
          <td>&ldquo;The worst part is the concrete class that lasts until 8 PM every Thursday, which leaves me hungry, tired, and bored.&rdquo;</td>
          <td>More natural phrasing. &ldquo;Accompanied with&rdquo; is incorrect preposition. &ldquo;Tiring&rdquo; should be &ldquo;tired&rdquo; (adjective form).</td>
      </tr>
      <tr>
          <td>&ldquo;Today I finished the assignment 5 of mining, and made a Tex template of Quarto for assignment.&rdquo;</td>
          <td>&ldquo;Today I finished Mining Assignment 5 and created a Quarto LaTeX template for assignments.&rdquo;</td>
          <td>&ldquo;Assignment 5 of mining&rdquo; → more natural to put subject first. &ldquo;Made a Tex template&rdquo; → &ldquo;created a LaTeX template&rdquo; is more precise.</td>
      </tr>
      <tr>
          <td>&ldquo;It&rsquo;s really useful for produce documents.&rdquo;</td>
          <td>&ldquo;It&rsquo;s really useful for producing documents.&rdquo;</td>
          <td>&ldquo;For&rdquo; should be followed by gerund (-ing form).</td>
      </tr>
  </tbody>
</table>
<p>The rest of your writing is grammatically correct and natural. The entry effectively communicates your Thursday experiences and productivity. The only remaining suggestions would be stylistic:</p>
<ul>
<li>Consider adding more specific details about your insomnia or the concrete class to make the entry more vivid</li>
<li>You might want to expand on why Quarto/LaTeX is useful for your workflow</li>
</ul>
]]></content:encoded>
    </item>
    <item>
      <title>2025-11-19</title>
      <link>https://jinpeng.cv/en/diary/2025/november/2025-11-19/</link>
      <pubDate>Wed, 19 Nov 2025 18:08:01 +0000</pubDate>
      <guid>https://jinpeng.cv/en/diary/2025/november/2025-11-19/</guid>
      <description>&lt;h3 id=&#34;1108-spot&#34;&gt;11:08 SPOT&lt;/h3&gt;
&lt;p&gt;To Soroush&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I think it&amp;rsquo;s essential to allow students to make mistakes and show sympathy. Whatever for teachers or students, the ultimate goal is not grading or marking, but patiently guiding and leading us with truth and purpose.&lt;br&gt;
Don&amp;rsquo;t ignore any information from students. As a teacher, you should give your feedback to students, whether rejection or affirmation, and give your reason; rather than ignoring.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&#34;write-assignment-5&#34;&gt;Write Assignment 5&lt;/h3&gt;
&lt;p&gt;The teacher is not good.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<h3 id="1108-spot">11:08 SPOT</h3>
<p>To Soroush</p>
<blockquote>
<p>I think it&rsquo;s essential to allow students to make mistakes and show sympathy. Whatever for teachers or students, the ultimate goal is not grading or marking, but patiently guiding and leading us with truth and purpose.<br>
Don&rsquo;t ignore any information from students. As a teacher, you should give your feedback to students, whether rejection or affirmation, and give your reason; rather than ignoring.</p>
</blockquote>
<h3 id="write-assignment-5">Write Assignment 5</h3>
<p>The teacher is not good.</p>
<h3 id="create-quarto-template">Create Quarto Template</h3>
<ol>
<li>Don&rsquo;t use a blank line in math mode in Quarto</li>
<li>pdflatex can not deal with the Unicode symbol</li>
<li>Too much trouble when using latex</li>
<li><code>align</code> in <code>$$</code> will report an error, but <code>aligned</code> doesn&rsquo;t.</li>
</ol>
<h3 id="typst">Typst</h3>
<p>It seems a better choice for writing, and it can excellently cooperate with Quarto.</p>
<h3 id="complete-the-engg-template-with-copilot">Complete the Engg template with copilot</h3>
<p>The copilot in Github is very strong and useful! Amazing!</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
