0

I have spend a day on this. I can generate html format file but not pdf format file. There are always different errors. Now I have installed 'pdflatex' successfully.but still I failed.

Those are the error message I got:

! Misplaced alignment tab character &.
l.8820 ...ck away: Red line, train N°1. B&
                                                  amp;D trains 10 minutes wa...

Error: Failed to compile Report.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See Report.log for more info.

Please let me know if you have any thoughts

r2evans
  • 108,754
  • 5
  • 72
  • 122
Cathy
  • 119
  • 6
  • 6
    Cathy, would you consider going back to your previous questions, choosing one answer per question, and [accepting it](https://stackoverflow.com/help/someone-answers); doing so not only provides a little perk to the answerer with some points, but also provides some closure for readers with similar questions. Though you can only accept one answer, you have the option to up-vote as many as you think are helpful. (If there are still issues, you will likely need to edit your question with further details.) – r2evans Aug 02 '19 at 21:11
  • 4
    As to this question, please make this question *reproducible*. In this case, it means a minimal-yet-complete rmarkdown document (with yaml header). Refs: https://stackoverflow.com/questions/5963269, https://stackoverflow.com/help/mcve, and https://stackoverflow.com/tags/r/info. – r2evans Aug 02 '19 at 21:11

1 Answers1

0

Try to export the file as HTML format, open the file on browser and print[CTRL+P] as pdf.

Kamol Hasan
  • 9,754
  • 1
  • 28
  • 37