Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build generating files with pdf.md extension #116

Open
dineshreddy opened this issue Oct 27, 2021 · 5 comments
Open

Build generating files with pdf.md extension #116

dineshreddy opened this issue Oct 27, 2021 · 5 comments

Comments

@dineshreddy
Copy link

Hello,

When I am trying to generate output, the build is generating pdf.md files for some policy documents. List includes:

  • AP
  • DCP
  • DRP
  • EP
  • RIAP
  • RP

Attaching the test documents generated.
test-AP.pdf.md
test-DCP.pdf.md
test-DRP.pdf.md
test-EP.pdf.md
test-RIAP.pdf.md
test-RP.pdf.md

Commands Executed:

  • comply init
  • comply build

Error message:

templates/index.ace -> output/index.html
Error producing PDF.
! Undefined control sequence.
<argument> @{} >{\raggedright \arraybackslash 
                                              }p{(\columnwidth - 2\tabcolsep...
l.79 ...nwidth - 2\tabcolsep) * \real{0.8627}}@{}}


Error producing PDF.
! Undefined control sequence.
<argument> @{} >{\raggedright \arraybackslash 
                                              }p{(\columnwidth - 6\tabcolsep...
l.162 ...width - 6\tabcolsep) * \real{0.2237}}@{}}


Error producing PDF.
! Undefined control sequence.
<argument> @{} >{\raggedright \arraybackslash 
                                              }p{(\columnwidth - 8\tabcolsep...
l.257 ...width - 8\tabcolsep) * \real{0.2105}}@{}}


Error producing PDF.
! Undefined control sequence.
<argument> @{} >{\raggedright \arraybackslash 
                                              }p{(\columnwidth - 6\tabcolsep...
l.200 ...width - 6\tabcolsep) * \real{0.3021}}@{}}
@binil
Copy link

binil commented Jan 17, 2022

I ran into this same issue. I suspect this is because Pandoc recently changed the way they calculate table column widths (jgm/pandoc@bd7c9eb and jgm/pandoc@7c4d7db).

I got past this issue by changing default.latex as:

\usepackage{longtable,booktabs,array}
\usepackage{calc} % for calculating minipage widths

The current default.latex file after f4f46ba contains these changes. Fetching the file and using it also seem to work.

@kavashgar2
Copy link

Hi , we use
docker run --rm -v "$PWD":/source strongdm/comply -c 'comply build'

How can I change default.latex value

@kavashgar2
Copy link

I ran into this same issue. I suspect this is because Pandoc recently changed the way they calculate table column widths (jgm/pandoc@bd7c9eb and jgm/pandoc@7c4d7db).

I got past this issue by changing default.latex as:

\usepackage{longtable,booktabs,array}
\usepackage{calc} % for calculating minipage widths

The current default.latex file after f4f46ba contains these changes. Fetching the file and using it also seem to work.

hi we use
docker run --rm -v "$PWD":/source strongdm/comply -c 'comply build'

How can I change default.latex value

@wallrony
Copy link
Contributor

Hello @dineshreddy, sorry for the delay. In the commit c78f900 we solved some pandoc build problems referencing some issues about infinite build in some environments and syntax errors, what we discovered that the cause was basically the version of pandoc which was outdated. So, I think that your problem will be solved if you use the most recent version of Comply, since that your issue was created before the commit merge. Please try this and give some feedback.

@wallrony
Copy link
Contributor

@kavashgar2 you don't need to change the default.latex file, if you update the project (or the strongdm/comply image) you should not have any problems. Otherwise, please give more information about your environment (e.g.: OS, OS Version, Comply Version, etc.) so we can try to replicate the scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants