<?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: Chintu Gurbani</title>
    <description>The latest articles on DEV Community by Chintu Gurbani (@chintugurbani).</description>
    <link>https://dev.to/chintugurbani</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4192492%2F9e968362-b1ca-4533-a5f3-9b080163ee25.jpg</url>
      <title>DEV Community: Chintu Gurbani</title>
      <link>https://dev.to/chintugurbani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chintugurbani"/>
    <language>en</language>
    <item>
      <title>How to convert a PDF table to LaTeX (booktabs) without retyping</title>
      <dc:creator>Chintu Gurbani</dc:creator>
      <pubDate>Wed, 21 Oct 2026 16:09:32 +0000</pubDate>
      <link>https://dev.to/chintugurbani/how-to-convert-a-pdf-table-to-latex-booktabs-without-retyping-161a</link>
      <guid>https://dev.to/chintugurbani/how-to-convert-a-pdf-table-to-latex-booktabs-without-retyping-161a</guid>
      <description>&lt;p&gt;You need a results table from a paper in your own LaTeX document. Retyping twelve columns of numbers takes half an hour and invites typos. Here is how to get a clean &lt;code&gt;booktabs&lt;/code&gt; table in a few seconds, and how the usual alternatives compare.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhl7v6xln0g07yxfps87f.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhl7v6xln0g07yxfps87f.jpg" alt="Snipping a table from a PDF into LaTeX" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The quick way: snip the table
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Open the PDF in CatchTeX&lt;/strong&gt; (Ctrl+O). The built-in viewer matters: CatchTeX reads the characters stored in the PDF instead of guessing them from pixels, so every number is exact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Drag a box around the table&lt;/strong&gt;, including its header rows. Auto mode recognises it as a table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the preview.&lt;/strong&gt; The result is compiled with a built-in pdfLaTeX and shown next to the code. Cells it is unsure about are highlighted, so you only check those.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copy the LaTeX&lt;/strong&gt; (Ctrl+Shift+C) and paste it into Overleaf or your editor. Add &lt;code&gt;\usepackage{booktabs}&lt;/code&gt; to your preamble once.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Is the table in a slide, web page or scanned page instead? Press Ctrl+Alt+T and snip it from the screen. CatchTeX then uses offline OCR, so proofread the numbers as you would with any OCR.&lt;/p&gt;

&lt;h2&gt;
  
  
  What comes out
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;booktabs&lt;/code&gt; rules (&lt;code&gt;\toprule&lt;/code&gt;, &lt;code&gt;\midrule&lt;/code&gt;, &lt;code&gt;\bottomrule&lt;/code&gt;) instead of a grid of &lt;code&gt;\hline&lt;/code&gt;s&lt;/li&gt;
&lt;li&gt;Merged header cells as &lt;code&gt;\multicolumn&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Maths inside cells (Greek letters, ±, sub- and superscripts) as real LaTeX maths, not Unicode&lt;/li&gt;
&lt;li&gt;Bold and italic values kept, so the best result stays marked&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Other ways, compared honestly
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Exact numbers&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;th&gt;Paper stays on your PC&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Retype by hand&lt;/td&gt;
&lt;td&gt;If you are careful&lt;/td&gt;
&lt;td&gt;Whatever you write&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Copy-paste from the PDF reader&lt;/td&gt;
&lt;td&gt;Yes, but columns fall apart&lt;/td&gt;
&lt;td&gt;A line of text to rebuild&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tabula / Excel → Tables Generator&lt;/td&gt;
&lt;td&gt;Yes for simple tables&lt;/td&gt;
&lt;td&gt;Merged headers and maths need fixing&lt;/td&gt;
&lt;td&gt;Partly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI chatbot&lt;/td&gt;
&lt;td&gt;Not guaranteed: numbers can change silently&lt;/td&gt;
&lt;td&gt;LaTeX, not compiled or checked&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mathpix Snip&lt;/td&gt;
&lt;td&gt;Good OCR&lt;/td&gt;
&lt;td&gt;LaTeX table&lt;/td&gt;
&lt;td&gt;No, cloud&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CatchTeX&lt;/td&gt;
&lt;td&gt;Yes, read from the PDF itself&lt;/td&gt;
&lt;td&gt;booktabs, compiled, doubtful cells marked&lt;/td&gt;
&lt;td&gt;Yes, offline&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Tips for a clean result
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Include the header rows in your selection; leave out the caption if you will write your own.&lt;/li&gt;
&lt;li&gt;Very wide table? Zoom out so the whole table fits on screen before you snip.&lt;/li&gt;
&lt;li&gt;Table split across two pages? Snip each part and join the rows.&lt;/li&gt;
&lt;li&gt;Want &lt;code&gt;siunitx&lt;/code&gt; decimal alignment? Change the column spec to &lt;code&gt;S&lt;/code&gt; columns after pasting; the numbers are already plain.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does it work with scanned PDFs?&lt;/strong&gt; Yes, through offline OCR. Accuracy then depends on scan quality, so check the numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need LaTeX installed?&lt;/strong&gt; No. CatchTeX ships its own pdfLaTeX for the preview. The output works in Overleaf, TeX Live and MiKTeX.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it free?&lt;/strong&gt; The free edition has every mode with 10 snips a day. Pro removes the limit with a one-time payment.&lt;/p&gt;




&lt;p&gt;CatchTeX runs offline on Windows, Mac and Linux, and also converts equations, block diagrams (TikZ), plots (pgfplots) and references (BibTeX). &lt;a href="https://catchtex.com/?utm_source=devto" rel="noopener noreferrer"&gt;Download it free at catchtex.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://catchtex.com/guides/pdf-table-to-latex" rel="noopener noreferrer"&gt;catchtex.com/guides/pdf-table-to-latex&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>productivity</category>
      <category>writing</category>
    </item>
  </channel>
</rss>
