I'd like to do the following in LaTeX
(it's being fed to pandoc for conversion)
I use the mainfont
and mainfontoptions
in pandoc. I have a piece of text on top that I'd like centered, and set to the fonts specified in the command line. The rest of the text I'd like to just be the default.
If I put in something like:
\centering Text
It centers fine, but also centers the rest of the document. It also doesn't use the font I want to use.
If I do
# Text
It uses the font (and makes it bold) but doesn't center. Ideally, I'd like to figure out some way to do a one-line \center
and #.
#
used this way is definitely not LaTeX. Maybe you wanted to use{\centering\Huge Text\par}
, or\begin{center}\Huge Text\end{center}
.