latex

LaTeX - Changing the font size for a document, but in the preamble, not the document class? [closed]

 ̄綄美尐妖づ 提交于 2019-12-06 17:23:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have a LaTeX document. I want to change the font size of all the text, to make it smaller. Normally I would just change the documentclass part. However I am generating LaTeX files from another programme, and it is setting the documentclass, I can't change that. However I can put things in the preamble. Is

To escape many _ in LaTeX efficiently

女生的网名这么多〃 提交于 2019-12-06 17:07:20
问题 How can you escape _ without the use of \_ ? This is the example of the question word_a_a_a_a_a_b_c_dd There is one function which you can use for this. However, I cannot remember its name. 回答1: Are you thinking of the underscore package, which redefines the underscore symbol so that you don't have to escape it in text mode? See here. 回答2: Other than verbatim I wouldn't know. Verbatim environment: \begin{verbatim} word_a_a_a_a_a_b_c_dd \end{verbatim} Inline: \verb|word_a_a_a_a_a_b_c_dd| 回答3:

writing “latex command” in the Matlab figure comment

跟風遠走 提交于 2019-12-06 15:21:01
I have a figure in Matlab, inside the figure i would like to write comments on the figure. the comment include latex formula; for example, I want to write this comment on my figure $$ \vec{R} = 2 $$ here is an example that I found when I searched; clear all; close all; clc; figure ms = 8; fontSize = 18; xx = 0:.1:1; plot(xx,sin(xx)) xlabel('P_{fa}', 'fontsize', fontSize); ylabel('P_{m}', 'fontsize', fontSize); I want it looks like as in the attached figure below: Note: I searched in last questions that already answered, I found that I can write latex commands in the legend, title, axis ... but

Latex 对修改内容进行高亮显示

情到浓时终转凉″ 提交于 2019-12-06 15:11:37
论文修改时,编辑要求对修改内容进行高亮显示。 比较简单的处理方法是使用下面的方式: \usepackage{soul} \hl{This will be highlight.} 1 2 3 但是遇到\cite、\ref等命令时该方式就容易出错。解决方法很简单,对这些命令进行注册: \usepackage{soul} \soulregister\cite7 % 针对\cite命令 \soulregister\citep7 % 针对\citep命令 \soulregister\citet7 % 针对\citet命令 \soulregister\ref7 % 针对\ref命令 \soulregister\pageref7 % 针对\pageref命令 \hl{This cation cite{引用ID} will be highlight.} ———————————————— 版权声明:本文为CSDN博主「shuzfan」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/shuzfan/article/details/79478211 来源: https://www.cnblogs.com/ssyan/p/11991975.html

Latex, RenderTable in Shiny, R

怎甘沉沦 提交于 2019-12-06 14:09:28
I just trying to get $\10^{-1}$ in a table in Shiny, but it is not working. I'm trying the following code (thanks in advance): ui.R : require(shiny) shinyUI(tableOutput('mytable') ) server.R : require(shiny) shinyServer(function(input, output){ output$mytable <- renderTable({ df <- data.frame(A = c("$\\10^{-1}$", 33.1, 6),B = c(111111, 3333333, 3123.233)) df }, sanitize.text.function = function(x) x) }) You can use mathJAX in shiny: require(shiny) ui <- shinyUI( fluidPage( withMathJax() , h2("$$\\mbox{My Math example }\\sqrt{2}$$") , tableOutput('mytable') ) ) server <- function(input, output,

How can I compile first 2 pages of 24 pages in a Latex document?

非 Y 不嫁゛ 提交于 2019-12-06 13:34:36
My work has over 24 pages in Latex. I need only the abstract and introduction in pdf. How can you compile only the first two pages? I'd just make a new file with only the abstract and introduction and compile that. Actually, if this is not just a one-time thing, I'd use three files: absintro.tex : \begin{abstract} ... \end{abstract} ...introduction... onlyabsintro.tex : ... \begin{document} \include{absintro.tex} \end{document} fullreport.tex : ... \begin{document} \include{absintro.tex} ...other stuff... \end{document} (Obviously the filenames can be whatever you want, this just shows the

How to only show table caption once in “list of table” for a table split onto multiple pages

我与影子孤独终老i 提交于 2019-12-06 12:56:49
问题 I am using R packages ( xtable and knitr ) and Latex packages ( longtable and hyperref ) to prepare a document. One of my tables is very long and splits onto multiple pages. It turned out that the "List of Table" shows every page number at which this table appears, but all hyperlinks bring me to the beginning of this table. My question is, in "List of Table" how can I just show the first page number at which this table appears. \documentclass{article} \usepackage{longtable} \usepackage

Which is the best import / export LaTeX tool?

折月煮酒 提交于 2019-12-06 12:27:15
问题 Working in academia publishing CS/math, you sooner or later find yourself trying to publish in a journal that will only accept .doc/.rtf. This means tedious, boring hours of translating line after line, especially equations, from LaTeX to an inferior format. Over the years I have tried a number of export tools for LaTeX, but none, at least of the free ones, that I have been very satisfied with. I'd like this page to collect and monitor the best import/export tools for LaTeX, to .doc/.rtf, or

figure caption centering in nbconvert?

无人久伴 提交于 2019-12-06 12:26:13
问题 I have cells underneath figures in an ipython notebook that contain figure caption text. I would like them to be centre('center')-aligned. I use "< center >" in the markdown, which gives exactly the appearance I'm after in the notebook. But when nb-converting to latex, the text gets shunted over to the left. So is there a way to get nbconvert to recognize text alignment in markdown cells when converting to latex? Thanks. 回答1: You have actually asked two different questions: is there a way to

How to add a watermark image on rmarkdown?

淺唱寂寞╮ 提交于 2019-12-06 12:07:45
I'm searching and trying to add a image as watermark to rmarkdown pdf, I'm using the render function to generate the PDFs, and saw the \usepackage{draftwatermark} and this question: Watermark in rmarkdown But they don't help me in adding a image as watermark. --EDIT-- I achieved what I wanted putting this to the header of .Rmd: header-includes: - \usepackage{eso-pic,graphicx,transparent} And placing this in the start of file (before the rest of .Rmd): \AddToShipoutPictureFG{ \put(0,0){% \parbox[b][\paperheight]{\paperwidth}{% \centering {\transparent{0.3} \includegraphics[width=\paperwidth