I am trying to produce a structured or 'tagged' PDF from pdftex (Tex Live 2013) that passes automated tests in Adobe Acrobat for tagging. These tests are the de facto indicator for a document accessibility, which are often required by universities, government agencies and others worldwide for published documents.  To test a document for accessibility / tagging, try this:   Open the PDF in Acrobat Reader 'file -> 'document properties' -> 'Description' under 'advanced', you'll see a field, 'tagged pdf'. Ideally it should say 'yes'. But it doesn't :(     Question: does anyone know of any way to create a PDF which passes Acrobat's 'Tagged PDF' test directly from LaTeX?  The ideal solution would be a package or two that can be called from the preamble of a latex document. I want something that is very low effort for the author, and can thus be very easily integrated with .  Note: There has been discussion about this in the past (see tags and links on the right), but as of May 2014, there was no clear solution to this. Much of the existing discussion is from 2012 or earlier (see ), and so I'd like to see if we can kick-start this discussion.  Why this isn't a duplicate question: When I first posted this question in July 2013, it was flagged as a duplicate of . The answer references a presentation given at at TUG 2010. That presentation basically says "we're working on it", and is not an answer that allows me to implement a solution.  Because it is now 2014, I think it reasonable to expect that:   There have been new developments in this field through new packages or updates to core LaTeX Attempting to comply with Section 508 will have required that people figure out solutions. This is a relatively recent requirement and so solutions may have changed since 2010 The software that is typically used to judge compliance (Adobe Acrobat) has changed several times since the question was not answered Packages that address accessibility have been proposed but not come in to widespread use or even disappeared (e.g. the accessibility package, ), and it is therefore reasonable to revisit this issue with fresh eyes.
52047
How to create tagged PDF such that they will be:   good enough for PDF/UA "reflowable" on smaller screens and ebook readers   Any syntax &amp; any engine are of interest, but I'm most interested in using LaTeX with [Xe|pdf]latex engines.
97884
I have a PDF file, and I'd like to comment in adobe style. Is there a way to enable that somehow, or are there any alternatives?
62016
When rendered the text in my pdf is not anti alised. Anyone knows how to do this?  The following example shows my text output compared with output from google docs pdf    Is it even possible with pdflatex?  Header file:  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{amsmath} %\usepackage{icomma} %\usepackage{units} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{color} \usepackage[hyphens]{url} \usepackage[breaklinks,pdfpagelabels=false]{hyperref} %\usepackage{lettrine} \usepackage[sort]{natbib} \usepackage{caption} \usepackage[final]{pdfpages}  %\usepackage{fancyhdr} %\usepackage{fncychap}   \newcommand{\degC}{\ensuremath{\,\unit{^\circ C}}} \newcommand{\mail}[1]{\href{mailto:#1}{\nolinkurl{#1}}}   Thanks!
95161
When I use the \tableofcontents macro in a document where the etoc package is loaded, latex pauses and reports an error. If I let the compilation continue a well formed pdf is generated.  Minimal example that can reproduce the error on my machine.  \listfiles \documentclass{article} \usepackage{etoc}  \begin{document} \tableofcontents‎‎ \end{document}   Output from pdflatex on the minimal example.  This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)  restricted \write18 enabled. entering extended mode (./mwe.tex LaTeX2e &lt;2018-04-01&gt; patch level 4 (/usr/local/texlive/2018/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/local/texlive/2018/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2018/texmf-dist/tex/latex/etoc/etoc.sty (/usr/local/texlive/2018/texmf-dist/tex/latex/tools/multicol.sty)) (./mwe.aux)  ! Package inputenc Error: Unicode character ‎ (U+200E) (inputenc)                not set up for use with LaTeX.  See the inputenc package documentation for explanation. Type  H &lt;return&gt;  for immediate help.  ...                                                l.6 \tableofcontents‎                        ‎ ? R OK, entering \nonstopmode...  ! Package inputenc Error: Unicode character ‎ (U+200E) (inputenc)                not set up for use with LaTeX.  See the inputenc package documentation for explanation. Type  H &lt;return&gt;  for immediate help.  ...                                                l.6 \tableofcontents‎‎  [1{/usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./mwe.aux)   *File List*  article.cls    2014/09/29 v1.4h Standard LaTeX document class   size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)     etoc.sty    2018/02/23 v1.08n Completely customisable TOCs (JFB) multicol.sty    2018/04/20 v1.8s multicolumn formatting (FMi)  ***********   ) (see the transcript file for additional information)&lt;/usr/local/texlive/2018/te xmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb&gt;&lt;/usr/local/texlive/2018/tex mf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb&gt; Output written on mwe.pdf (1 page, 16281 bytes). SyncTeX written on mwe.synctex.gz. Transcript written on mwe.log.
47856
My goal : I correct copies from students that I scan to pdf. I wish I could make the annotations on the scanned copies rather than on the physical paper. Today, I have to scan the copies again to have my annotations transferable to students by email. Since most of the annotations are similar, I wish to have a stock of annotations I could transfer on the copies.  I went through a lot of technologies, including many "StackExchange Questions" here. I considered pdfcomment, cooltips, fancytooltips, the OCG family (ocgx, ocgp, ocg2, ...), etc.  Two tracks attracted more specifically my attention :    pdfcomments : I like the mouseover to see the comment, the capabillity to move the annotation around so I can have a stock on a pdf and I can copy it onto the scanned copies. This would be my choice if there was not a main drawback : it accepts only plain text when I need to use mathematical notations. (It needs selected pdf readers). Because you can move comments, you can put them on any pdf, even if it is not compiled from Latex or if you don't have the source. fancytooltips : I like the mouseover to see the comment, and the capability to use LaTeX mathematical formulas and images. Drawbacks : I can't move the annotation from a pdf document to the copies. (It works with very few pdf readers.) . I am not sure whether I can put tips on non Latex pdfs.   Is there a way to have pdfcomment have images/Latex mathematical formulas (or references to formulas that can show with a mouseover) ? Or is there a way to transfer fancytooltips to a non Latex pdf ? Or are there other techniques to achieve the goal ?
111196
I am embedding a PDF file inside my LaTeX-generated PDF file using embedfile:  \usepackage{embedfile} \embedfile{myfile.pdf}   I would like to also insert a link that the user can click on to open the attachment.  Is there any way to do that?
109180
I am sure I am not the only person to have had the following problem: one has a pdf document (usually some kind of a form that one needs to fill out over and over again) in a pdf file, which is not a form in the PDF sense. One wants to be able to fill the form quickly, and some fields are always the same. A solution is to use package  to include the form into .tex document and add some text with absolute positioning. Then each time one needs to fill the form, all it takes is a quick change of some text. This works, but the process of finding the correct absolute positions is slow even if one uses the binary search. Is there a tool to help with this? Or a better solution perhaps?  (I know of , but it is unstable for me.)
87057
There are a few question/answers regarding the embedding movies in PDF with pdflatex and special packages. However I find the information dispersed all around and confusing. And so far, in the best cases I get a "3D rendering error in Acrobat Reader" and I don't know what step is failing.  Maybe this particular case serves as guide for a step by step explanation:   pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian), Acrobat Reader 9.5.1, Linux (Ubuntu 12.04). Need to upgrade something?      Let's start with a movie file: movie.avi with FFmpeg MPEG-4 encoding. Does it need to be encoded in some other way? what is the best tool to reencode? what encodings are going to work? Is a conversion to flv format really necessary? pdflatex: what packages need to be included, media9, movie15 (obsolete?), flashmovie?  what is the latex command to include the movie? Can one have the option to keep the file inside the PDF or external? How does one get the playback controls rendered with the movie inside the page? Does one really have to use a third party flash-based movie player? If so which player works with Acrobat 9.5.1? Can I expect the movie to be player inside the PDF page in the monitor? Can one expect to have a preview of the movie (first frame) in the static rendering of the page. Can one expect the resulting PDF and embedded movie to work when switching to Windows/Linux/OSX? Does one need to change (hidden?) security preferences in Acrobat to see the movie?   A solution compatible with beamer is also desirable.
79752
The question how to create identical PDF files with pdflatex was basically answered in this question already:    The catch was to filter out the entry /ID in the trailer dictionary after the PDF file was created.  I am now forced to use xelatex and there this trick does not work any more, because there are many more changes in the resulting PDF files.  Here is the minimal working example again:  \documentclass[11pt,a4paper]{article} \usepackage[]{hyperref} \hypersetup{         pdfauthor={None},         pdfcreationdate={D:20131010120000},         pdfmoddate={D:20131010120000} } \begin{document} foo  \end{document}   If I now create 2 PDF files, convert them to a hex dump and view the differences...  xelatex mwe.tex; mv mwe.pdf a.pdf; xxd a.pdf &gt; a.bin xelatex mwe.tex; mv mwe.pdf b.pdf; xxd b.pdf &gt; b.bin diff -u a.bin b.bin    ... then you can see that there are many differences in the resulting PDF files unfortunately.  Is there any way to produce bitwise identical PDF files with xelatex?  The reason I need this is that I'd like to create PDF files for a software release package. Of course the software release package should be identical when the underlaying software and documentation has not been changed.
25005
I have heard about PDF  PDF/A (for archival) and PDF/X (for printing). How to generate LaTeX documents like that?  I'm also interested in answers with plain TeX and ConTeXt, and hopefully with both pdfTeX and XeTeX engines.
51346
LaTeX rookie here.   I'm running OS X 10.7 with Emacs 24, Auctex 11.86 and TexLive 2011 via MacTex.   When i run LaTeX through Emacs in the terminal it outputs my test.tex as test.pdf just fine.   However, when i run the same file through Auctex in Emacs.app it fails and i'm given:  LaTex: problems after [0] pages'   and the output reads  Running `LaTeX' on `test2' with ``pdflatex -synctex=1  -interaction=nonstopmode "\input" test2.tex'' /bin/sh: pdflatex: command not found   I've been googling this and know this is a fairly common problem, but for the life of me I haven't been able to implement a fix. From what i've read it seems Emacs has a different PATH than terminal, no? Can someone please explain to me how to fix the PATH or environment variable (i'm not sure which) so that Emacs can find pdflatex. Is there something I need to change in my ~/.emacs ?  thanks, any help is appreciated.
13121
At the moment I'm having a problem when trying to view my LaTeX file as a PDF. Whether I do it internal or external I both the error "File not found.".  I have no idea what file it means. I've read somewhere it has to with my Acrobat Reader, but I still can't get it fixed. And I think it's worth mentioning that I work on Windows 7, as I've also read that Texmaker on Windows has some bugs.  Any help will be appreciated!
109120
I'm a relatively new user of Latex. I'm using TeXStudio on a Windows 8.1 system writing a long document (document class book). I'm trying to make glossaries package work properly and after ~2-3h of googling it kinda work. The same TeXStudio on a MacBook, with exact same *.tex files work flawlessly.  On windows, when I compile the glossary (F9), i get the following:  Unescaped left brace in regex is illegal here in regex; marked by &lt;-- HERE in m/\\\@input{ &lt;-- HERE (.+)\.aux/ at C:\Program Files\MiKTeX 2.9\scripts\glossaries\makeglossaries line 634.   I'm not familiar with Perl syntax, but the 634 line is the following:  634 if (m/\\\@input{(.+)\.aux/}) 635    { 636       &amp;scan_aux($1);  .  .      # v2.04 added  .      # (Fix provided by Daniel Grund)   .      next; 641    }   Compiling on the Mac is working properly.  I want to make it work on the windows system, as it's the professional computer that I use more often (I don't carry my Mac at work or my Win at home).  \documentclass[12pt]{book} ... \usepackage[acronym, toc]{glossaries} \input{./Tex_files/glossary.tex} \makeglossaries   The glossary.tex is the following:  \newacronym{EBL}{EBL}{Electron Blocking Layer} \newacronym{TFB}{TFB}{name)}   And i cite in the text as follows in two occasions, in chapters 1 and 2.  \acrfull{EBL} \acrfull{TFB}   The main.tex file i use after the \begin{document} is as follows:  \begin{document} .... \printglossary[type=\acronymtype, title= List of Abbreviations] \mainmatter \include{./TeX_files/chapter01} % Chapter 1 \include{./TeX_files/chapter02} % Chapter 2   I installed the Strawberry Perl version 5.26 64bit from perl.org as before installing it I got the message : "Perl interpreter not found".   My google searching didn't show any relative answers and therefore the post.. Sorry if it's a duplicate!  Many thanks in advance...  Alex  PS. Edited the document to add preamble and the rest of the code.
46958
I need to copy a table from a pdf file to my LaTeX document. I know I have to do it by hand but still don't understand how to create a table with LaTeX.
117518
When I try to open  it looks this way (I have tried Evince, Chrome and Firefox), saying     Please wait...      If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.      You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting .      For more assistance with Adobe Reader visit .     I have found  saying     Certain PDF files (dynamic XFA forms) created in Adobe LiveCycle can only be opened in Adobe Reader and Adobe Acrobat. When you try to open these files in an alternative PDF viewer, then you will see this error message.   How are such files meant to be opened on Ubuntu given the official Adobe Acrobat Reader package is deprecated?  It's not a real problem for me practically as I have actually managed to install Adobe Acrobat Reader 9 (BTW I am, however, afraid this ancient version is going to start having problems with opening new files of this kind soon) on Xubuntu 15.10 a reasonably tidy way by unpacking the old Ubuntu DEB package, putting the necessary files to a subdirectory in /opt and editing the Reader's launch scripts but I believe it's a pretty serious issue for using Ubuntu in commercial/academy/government environments so there is to be a more proper way.
51697
Solution  Full solution for producing PDF/X compliant document can be found in MWE and answer to this question:   Adapted MWE and compilation method are taken from Leonid's answer to this question.  Please note that solution requires compilation with TeXLive 2015 (or later).  Original question  I am trying to compile my source with XeLaTeX to produce PDF/X-1a:2001 compliant document. Getting PDF/X-1a:2001 is possible with pdfx package (while using up-to-date TeX distribution), but only when document is compiled with pdflatex.  Since I am using OTF and TTF fonts in my document, I have to use XeLaTeX to compile it. This is MWE:  \documentclass{book} \usepackage[x-1a1]{pdfx} \begin{document} Some text \end{document}   When I try to compile this document with MiKTeX's 2.9 xelatex I get following error and compilation halts:  ! Undefined control sequence. l.111 \pdfminorversion                       =4 %  assumed for PDF/A ;  options may change this for...  ?    Is there any way to compile PDF/X-1a:2001 with XeLaTeX, either using pdfx or different package?  Ps. I used MiKTeX 2.9, because I don't want to update my TeX Live 2013/Debian distribution I normally use. With MiKTeX I get most recent version of pdfx package.  EDIT: Since it isn't obvious from Leonid's answer and is mentioned only in comments, please note that you need TeXLive 2015 in order for Leonid's answer to work fully. TeXLive 2013 (installed by your system's package manager) or MiKTeX 2.9 won't do the trick (this is true as of March 2016; it might change by the time you read this).    I also tried to compile this MWE with LuaLaTeX to see if this works. It didn't. I get following error:  ! Undefined control sequence. \pdfx@findUUID ... \pdfx@tmpstring {\pdfmdfivesum                                                    {#1}} \expandafter \pdfx@e... l.360 \pdfx@findUUID{\jobname.pdf}  ?   In the event version of LuaLaTeX matters: lualatex --version outputs  This is LuaTeX, Version beta-0.76.0-2013062821  (MiKTeX 2.9 64-bit) (rev 4627)
68122
I once saw a latex template, which you could use to create a Chat-Like document which has an appearance similar to current mobile chat applications (i.e. iMessage or Whatsapp).  I am of course looking for a static document compiled by latexor pdflatex and not a dynamic chat program.  I remember that I saw something similar done in LaTeX already, but I was not able to find it again.  I can imagine, that this has been done with tikz before.  Example images: