{"id":23538,"date":"2024-04-14T09:40:05","date_gmt":"2024-04-14T07:40:05","guid":{"rendered":"https:\/\/www.wjst.de\/blog\/?p=23538"},"modified":"2024-04-14T13:20:30","modified_gmt":"2024-04-14T11:20:30","slug":"macos-pages-getting-line-numbers","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2024\/04\/macos-pages-getting-line-numbers\/","title":{"rendered":"MacOS Pages getting line numbers"},"content":{"rendered":"<p>Mayn journals requiring consecutive line numbering which is not a problem with MS Word, Open Office or LaTeX but with Pages.<\/p>\n<p>Maybe it is possible to add a new background to PDF? Acrobat can do it (which I would not recommend), there is some <a href=\"https:\/\/tex.stackexchange.com\/questions\/18760\/add-page-and-line-numbers-to-a-pdf\">crazy script out there<\/a> (that did not work as well as ). My initial solution<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\npandoc -s input.rtfd -o output.tex --template=header_template.tex | pdflatex -output-directory=output_directory\r\n<\/pre>\n<p>with the header_template.tex containing<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n---\r\nheader-includes:\r\n- \\usepackage&#x5B;left]{lineno}\r\n- \\linenumbers\r\n- \\modulolinenumbers&#x5B;5]\r\n---\r\n<\/pre>\n<p>did not work as pandoc cannot read the rather complex rtfd format produced by Pages. Also the next try with rtf2latex2e looked terrible, so I went back to RTF export in Libre Office where I\u00a0 corrected the few Math formulas that were not recognized correctly.<\/p>\n<p>Another option would have been Google Docs &#8211; they introduced line numbering recently which is probably the fastest and easiest way to do that.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-23551\" src=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2024\/04\/Bildschirmfoto-2024-04-14-um-12.19.12-620x507.jpg\" alt=\"\" width=\"374\" height=\"306\" srcset=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2024\/04\/Bildschirmfoto-2024-04-14-um-12.19.12-620x507.jpg 620w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2024\/04\/Bildschirmfoto-2024-04-14-um-12.19.12-612x500.jpg 612w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2024\/04\/Bildschirmfoto-2024-04-14-um-12.19.12-768x628.jpg 768w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2024\/04\/Bildschirmfoto-2024-04-14-um-12.19.12.jpg 1024w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Whenver it comes to more than one formula, it would be even better to move from Pages to <a href=\"https:\/\/www.overleaf.com\/\">Overleaf<\/a> (online) or<a href=\"https:\/\/www.texifier.com\/\"> Texifier<\/a> (local).<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 03.05.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>Mayn journals requiring consecutive line numbering which is not a problem with MS Word, Open Office or LaTeX but with Pages. Maybe it is possible to add a new background to PDF? Acrobat can do it (which I would not recommend), there is some crazy script out there (that did not work as well as &hellip; <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2024\/04\/macos-pages-getting-line-numbers\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">MacOS Pages getting line numbers<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-23538","post","type-post","status-publish","format-standard","hentry","category-computer-software"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/23538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=23538"}],"version-history":[{"count":14,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/23538\/revisions"}],"predecessor-version":[{"id":23558,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/23538\/revisions\/23558"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=23538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=23538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=23538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}