I know that I can set fig.align = 'center' if I want to focus my figure. But what if I want to focus my work on a PDF document?
fig.align = 'center'
The following code worked for me.
\center Centered Text \center
And, if you need to put it in bold , in my case you can use the underscore (two at the beginning, two at the end):
\center __Centered Text__ \center
Hope it's not too late to add my answer.
You can use HTML tags in Rstudio Markdown docs.
To center the text you just need to:
<center> TEXT TO CENTER </center>
This works for me when knitting Rstudio Markdowns.
Source: https://habr.com/ru/post/1259255/More articles:Visual Studio build error → Microsoft.DotNet.Common.Targets: DLL not found - .netReplacing / arranging multi-index columns in pandas - pythonJavascript page reload prevention - javascriptAngular2: the difference between $ {..} and {{...}} in the pattern line is angularHow to install android 6.0 location app from adb - androidHow to extract xip archive using command line? - xcode.NET Core Entity Framework Stored Procedures - c #Import an existing C ++ library (.a or .so file) ndk android - androidC / C ++ with Android Studio version 2.2 - c ++Incorrect "login" route configuration: one of the following conditions must be provided (component or redirectTo or children or loadChildren) - angularAll Articles