Questions tagged [markdown]

A plain text markup language for conversion to HTML, LaTeX and other formats.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Command \@ already defined when using journal style file

I am trying to compile an (R) markdown document that includes a journal style file. The following line produces the following error: \newcommand\@titlenote{} %! LaTeX Error: Command \@ already ...
3
votes
0answers
59 views

Background color of Markdown blocks

I want to be able to insert Markdown text in a LaTeX document with a simple macro, and I want that text to always have a specific background color (e.g. light gray). I tried using the markdown ...
2
votes
1answer
26 views

Pandoc: Convert only parts of the markdown to LaTeX

I have a markdown file which looks like this: # Sors inmotusque emicat de ope onus in ## Virgo cupidusque timet stant Lorem *markdownum*, premeret, atque expresso contraria ossibus, et virgo et ...
1
vote
1answer
27 views

pandoc: Undefined control sequence … unless I include some ```code```

this markdown document: --- author: Benoît toc: true papersize: a4 pagenumbering: true --- # test Hello. \textcolor{green}{green} makes pandoc --from=markdown foo.md -o foo.pdf fail and output: ...
0
votes
1answer
24 views

How to create a new command in a template to replace often used URLs

I'm looking to create a new command in my LaTeX template where I can define a long url, so that if that URL changes, I can change it in one place rather than every place it appears. It would also make ...
1
vote
1answer
76 views

Settings for pandoc

I wish to edit the settings for pandoc that control the conversion of markdown files to LaTeX to avoid unnecessary code in the final .tex file in Ubuntu. Kindly guide me on this matter. This is my ...
0
votes
0answers
30 views

Image path when exporting from Lyx

I am trying to setup LyX to export directly to the reStructuredText format. I adapted these instructions just replacing markdown with reStructuredText. Unfortunately LyX changes the path of every ...
0
votes
0answers
46 views

Template options to change the background colour and text colour of all tables

I would like to change the top/header row of every table in my documents to have a purple header, and white text. I am converting many Markdown documents through Pandoc with a Tex template that I ...
1
vote
1answer
59 views

Pandoc - changing the layout when compiling markdown

I use pandoc to simply compile pdf files from markdown files: pandoc markdown.md -o output.pdf however this renders the PDF with lots of white space. Is there a way to change the layout of the ...
1
vote
0answers
110 views

How to overcome LaTeX Warning: Command \@footnotemark has changed?

I'm using rmarkdown, and after knitting a document I always receive this warning (the document knits normal, though). Output created: XY.pdf Warning message: LaTeX Warning: Command \@footnotemark ...
0
votes
0answers
23 views

Is it possible to enable subsubsections in the tufte/tint themes for rmarkdown?

I know that Edward Tufte's traditional style excludes any heading style below subsections, but in some cases subsubsections can be quite useful. Is it possible to enable these somehow, even if it ...
0
votes
1answer
50 views

Beamer presentation - Left to right direction and links in ToC doesn't work properly for Persian text

I'm using beamer presentation with markdown and pandoc. I have a markdown file like this: --- lang: fa dir: rtl title: "عنوان ارائه" author: "نام دانشجو" date: "تاریخ" institute: "نام دانشگاه" theme: ...
1
vote
2answers
63 views

How to type bold letter in math expression? [duplicate]

Actually, this is a markdown question. But I can't find a markdown community. I want the letter "w" to be bold in the expression y(x, w). $y(x, \boldsymbol{w})$ works. But the following parentheses ...
3
votes
1answer
149 views

Beamer presentation with Pandoc and Markdown - Using xelatex as the pdf engine doesn't show most Persian fonts properly

I'm trying to create a beamer presentation using pandoc and markdown, and since I'm writing it in Persian, I need to use --pdf-engine=xelatex. I have a pres.md file with this content: --- dir: rtl ...
0
votes
0answers
31 views

pandoc *.md to *.pdf with code block that keeps spaces/tabs

I'm using the following command line to generate a *.pdf file from my *.md file: pandoc --pdf-engine=xelatex file.md -o file.pdf Everything works fine except when I copy-paste a code block from the ...
0
votes
2answers
100 views

Rmarkdown code style in LaTeX

I would like my R code in latex to look like the rmarkdown block of codes: Distinct colours for functions and grey background. I pasted my code between \begin{markdown} and \end{markdown} But this ...
0
votes
1answer
49 views

Add LaTeX 'tags' to include/exclude sections of Markdown from command line

I would like to be able to "turn on/off" certain sections of my documents, depending on a command line declaration. I am converting a large group of policy documents that are for both internal and ...
1
vote
0answers
55 views

Pandoc LuaLatex error: cannot find image file

I've recently started having a weird error when converting a file from markdown to PDF using Pandoc with LuaLatex as the PDF engine when including PDF images. Running pandoc -i 1384e7d0c2.md -o test....
0
votes
1answer
132 views

Deploy custom fonts to shinyapps.io for application that produces an R Markdown report

I have a shiny application that produces an R Markdown report in pdf format, so I used also LaTeX to customise it. In my YAML I use the fontspec package to specify a custom font for the whole document ...
0
votes
0answers
69 views

Issue with fig=TRUE in Sweave RStudio

I do not receive plots using the fig=TRUE in the chunks. Rather i receive an 'undefined control sequence' error. Consider a simple code \documentclass{article} \usepackage{graphicx} \begin{document} ...
0
votes
1answer
42 views

How can I add a footnote that includes a bibliographic reference?

I'm a new LaTex and Markdown user. I'm trying to include a bibliographic reference in my footnote, but when I export it my reference doesn't appear and the quote command comes out ([@MyReference]). ...
2
votes
1answer
218 views

R Markdown/pandoc: Change how code blocks are converted to LaTeX

I use rmarkdown to generate a pdf file (which uses pandoc, which in turn uses pdflatex). By enabling keep_tex option, I noticed that code blocks without language type always become verbatim, e.g.: ```...
1
vote
1answer
195 views

colors with headers

I have some custom color and I'd like the headers of fancyhdr to be colored differently. How do you make the different headers \fancyhead[L], \fancyhead[R], \fancyhead[C] have different colorboxes ...
0
votes
1answer
55 views

Is pandoc's markdown to LaTeX conversion missing anything? [closed]

That is, are there any features that the users of pandoc + MD wish they had?
1
vote
0answers
21 views

Combining xstring with xkeyval [duplicate]

I'm trying to extend the markdown package so that I can pass options to \includegraphics and have them override defaults, something like this: \documentclass[]{article} \usepackage{graphicx} \...
0
votes
1answer
134 views

How to adjust background colorbox size for inline code in pandoc markdown [duplicate]

This answer provides a nice way to add background colour to inline code snippets. Using that, my YAML header includes this: --- title: My title subtitle: \emph{Documentation last updated on \today} ...
0
votes
0answers
56 views

Two problems with Latex on a Mac

I've used Latex on Mathematics Stack Exchange but I'm having problems with a version I downloaded for my Mac. Here is a screen shot. The first problem is $mathbf{\text{ something }}$ won't boldface ...
22
votes
2answers
2k views

Blogging in LaTeX

It seems to me that all (static) blogging frameworks, e.g. Jekyll and Hugo use Markdown as format for blog posts. But according to Hartl’s Tenth Rule of Typesetting Any sufficiently ...
1
vote
0answers
71 views

pandoc md to pdf ,the ordered list to enumerate cause error Something's wrong--perhaps a missing \item

Here is a markdown file 1. A 2. B 3. C use pandoc -i test.md -o test.pdf to convert to pdf. But got an Error: Something's wrong--perhaps a missing \item use pandoc -i test.md -o test.tex to convert ...
2
votes
1answer
38 views

The following character ``[`` isn't working in table, error : ! Paragraph ended before \CT@rowd was complete. \par

I'll ask my question here since I think it has more to do with LaTeX than stackoverflow. I am using R Markdown with LaTeX to create pdf documents that shows some tables. Using the R language with ...
2
votes
1answer
48 views

Plural page numbers in inline citations

My page number term gets randomly pluralized, i.e. sometimes when there is only one page reference, but not always. Using markdown and pandoc, I get: from the references [@Meyer1993, p.31] and [@...
0
votes
0answers
2k views

How to add cover pages to rmarkdown pdf file?

I need to add a coverpage at the very begginning and end of a pdf document i have made using R Markdown. (My first time using R markdown and latex) As it is now, the first page of the file output is ...
2
votes
1answer
461 views

Pandoc citations in the footnote

I am using Pandoc for writing texts with Latex or Markdown and converting them to Word (because of no reason everyone else still wants this word-shit). Now I have to convert my citations into footnote ...
0
votes
0answers
35 views

Accessing variable in inline expression (rmd to pdf output)

I'm working on coding a reproducible rmd which will output a pdf document. I know that for an inline expression to work, it requires $ $ to be placed around it but is there a way around this? Client &...
1
vote
1answer
1k views

Math symbol in Rmarkdown list

I am trying to get the following code to render correctly in rmarkdown, but unfortunately math mode does not seem to work in a list setting? Can anyone help with this? --- title: "Trial" author: "Jon"...
1
vote
1answer
42 views

Errors including markdown my project

I want to add markdown to my tex file and i'm having a really hard time doing so. i've added the package but i keep running into the same error. Here's my setup: And the PDFlatex run command is like ...
0
votes
0answers
350 views

Overlay problem when using markdown for slides (beamer) and document (handout)

Markdown can be used to produce either beamer slides or a single handout document file from the very same source file -- just by compiling it in a different way. Here how it works: Assume you have ...
2
votes
1answer
167 views

Can't remove italic format from my text with either \normalfont or \textnormal

$$\textit{Some italic and {\normalfont non italic} text}$$ $$\textit{Some italic and \textnormal{non italic} text}$$ My LaTeX block above is supposed to generate text like this (the first line): But ...
2
votes
2answers
680 views

Latex & Markdown files

I am writing my project docs in latex but I have a bunch of markdown (.md) files to include as chapters. I have a problem when latex parses the md files it reads all the tables and figures as plane ...
1
vote
1answer
580 views

Disabling page numbering bottom of page

Newbie question here. I seem to have some trouble changing the page numbering. I want it in the header, instead of the bottom of the page. I got the header working, but I have been deleting and ...
2
votes
1answer
116 views

Converting from Markdown-with-biblatex-commands to LaTeX

How can I use biblatex commands in a Markdown file (instead of Markdown's native cite commands) and have pandoc output a .tex file that preserves those biblatex commands unchanged? question ...
0
votes
0answers
23 views

Indexing terms being used in cross-referencing

This is a follow-up question of my previous one: Cross-referencing numeric values and text from later section to executive summary of a latex document I have finished making my report and now my boss ...
3
votes
1answer
393 views

How to add page numbers to inline references using csl in rmarkdown?

I am using RMarkdown in RStudio to reference multiple sources out of my .bib file with csl (see below). My .Rmd doc: --- title: "mytitle" author: "nunberg" date: '01\.01\.2019' output: ...
1
vote
1answer
102 views

How to cite german book titles properly (upper case) with csl and rmarkdown?

I am using RMarkdown in RStudio and want to cite several sources using csl, specifically I use the style "elsevier-with-titles.csl". I want to cite a german reference, so title must have upper case ...
0
votes
1answer
143 views

Rmd — bookend:pdf_document2 — Latex — Cross reference and caption figure not working

Can anyone help me understand how to write my header so that the figure caption and cross reference works? I am practicing making captions and cross references to a simple plot in my Rmd file. I ...
2
votes
1answer
433 views

How to center and flush right cells in a column

I am trying to create a table with a numeric column number which I wish to center and flushright content as follows: Using RMarkdown, I am only able to wrap LaTeX code around/inline with cell content ...
0
votes
3answers
2k views

Can I type \LaTeX inside inline code in Rmarkdown?

I know I can use $$ to write \LaTeX in Rmarkdown documents like $\beta$. My goal is if this is possible inside inline code. I would do `$\beta$` or `$\\beta$`, but both do not work. In case it is ...
0
votes
0answers
270 views

Docx to Docx via Pandoc with the constraint of complex formats

I am looking for a workflow to enable 'only Word' people to keep working with their favorite editor while: enabling developpers to use markdown use a robust saving format managable with Git prevent ...
0
votes
1answer
113 views

I use markdown and pandoc and need to renewcommand iffalse/% with a couple tilde

I use Pandoc and Latex for my adacemic writing with Typora as my markdown editor. If I need to strikethrough text Typora uses ~~ double tildes. But Latex didn't recognize it as text which should be ...
0
votes
1answer
302 views

LaTeX with markdown and tables

I'm trying to build up a new documentation system using Markdown and LaTeX. After several hours most things are running smooth, but tables are a bit complicated. Most of the text can be written with ...

1 2 3 4 5