All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
28 views

UTF-8 comment highlighting in lstlisting

I am writing a document full of UTF-8 characters and code, so I am using CJKutf8 package with lstlisting. However, it seems that there is something wrong with text highlighting. In the example below,...
1
vote
1answer
61 views

Stylized punctuation marks for mathematical formulas

I'm looking for a a set of stylized punctuation marks for use in mathematical formulas. Package stix has a symbol \typecolon that looks like this This is just the kind of thing I am looking for, but ...
1
vote
2answers
37 views

How to “clean” article source code before submitting to ArXiv?

ArXiv requires uploading TeX sources. The justifications they give for this are rather weak IMHO, but that is beside the point. What is the easiest way to clean up an article for submission? ArXiv ...
0
votes
1answer
29 views

Pseudocode argument management: best way to deal with many arguments

In latex pseudocode, if you have function calls inside another function with many arguments, lets say more than 4, would you still put the arguments everywhere, omit them or use some kind of ...
151
votes
5answers
34k views

What exactly do \csname and \endcsname do?

What exactly do \csname and \endcsname do? What are their job? I have glanced at the Texbook and some other books, but none of them was clear enough to me. Can anyone please give a simple example to ...
0
votes
0answers
21 views

Two Flowing Frames per Page

I want to write a document where the history, geography, culture of a certain place is the main text. Together with that, I want to present a timeline of events but, rather than a separated topic or ...
0
votes
0answers
8 views

Identify font used

I'm looking for the font used in this fragment: Anybody could guide me on the family name, and how to use it by myself?
0
votes
1answer
5 views

TeXShop 4.27 preferences panel doesn't have Theme tab. How can I fix this problem?

I installed MacTeX-2019 distribution and, as the title says, I don't have the Theme tab in the preferences panel of TeXShop which allows me to change the source page colours. Moreover, the "OK" ...
0
votes
1answer
17 views

Distance between top (or bottom) margin and header (or footer)

I am preparing a camera-ready book. My publisher has given me a stylesheet that is based on a Microsoft Word template. I am having trouble setting the exact measurements of the sheet with the geometry ...
0
votes
0answers
18 views

Problem setting font with XeTeX

I want to use a font that's installed on my computer as my main font on a LaTeX document, which I'm compiling using XeLaTeX. Following this answer, I am using the following code \usepackage{fontspec} ...
1
vote
1answer
9 views

How to add extra leftmargin only for the body in an environment?

How to add extra left-margin only for the body in an environment? The extra margin should be of same space as the environment-head occupies. For example, what I am getting is this: And what I want is ...
0
votes
0answers
10 views

Some problems with toc and usage of fancyhdr package

Firstly, I would like to have my introduction the same as my bibliography(font and location) (Photo 1) the introduction is better seen in photo 2 Secondly, I want to remove the "contents" from the ...
0
votes
1answer
36 views

Use of ___ doesn’t match its definition [duplicate]

I am returning to LaTeX after a bit of a hiatus. Currently running Mac OS High Sierra (10.13.16) and TexShop 4.26. In the past, I have used the following definition command % In pre-amble \def\m3{m$...
3
votes
1answer
138 views

ISBN barcodes using labels and textmerg

I am making a sheet of ISBN barcodes like this: \documentclass{article} \usepackage{GS1} \usepackage{textmerg} \usepackage{filecontents} \begin{filecontents*}{\jobname.dat} 0201134489 978-...
1
vote
1answer
16 views

Custom Labels right side of the axis

I am having problems with custom labels and its position, especially with negative values in the coordinates. I do not get the position on the right side of the y axis and its height is shifted if the ...
0
votes
0answers
10 views

Miktex Linux Docker : LaTeX Error: File `l3backend-xdvipdfmx.def' not found

I have a docker container; I've installed miktex but when i try to generate a pdf I get an error: LaTeX Error: File `l3backend-xdvipdfmx.def' not found. Here is the Dockerfile: FROM node:12.6.0-...
2
votes
1answer
68 views

Preserve label spacing dimensions when using mailmerge

I am making a sheet of address labels. Here is my first iteration: \documentclass[letterpaper,12pt]{article} \usepackage[newdimens]{labels} \LabelCols=4 \LabelRows=6 \LeftPageMargin=20mm \...
2
votes
2answers
6k views

Equation environment in caption

Is it possible to put an equation environment in a table caption? Here is an outdated answer that does not compile for me with the code \documentclass[12pt]{report} \usepackage{caption} \begin{...
0
votes
0answers
8 views

Inputting only a single environment from a file inside an enumerate environment using xcomment?

I am trying to input problem assignments into an exercise template from individual problem files, that also happen to contain the right answers to the exercises in question. The assignments and right ...
2
votes
0answers
26 views

TikZ append does not overwrite – what does?

Main Question I want to change all properties of certain TikZ elements in the style of TikZ’ append. However, unlike its name suggests, append provides only defaults. By contrast, I wish to override ...
0
votes
0answers
5 views

Single separator line in a grouped bar chart (pgfplots)

Context: Two groups (sample A / sample B) were asked tp express their opinion in six categories. However, some people did not give an answer. Hence, I am trying to integrate this information in my ...
0
votes
0answers
9 views

How to use otftotfm with LGR encoding

I have an OTF font with 4 variants (regular, italic, bold, and bold italic). The font includes upper and lower case Greek symbols in all of the appropriate slots. I'd like to use this font with ...
1
vote
1answer
52 views

Included graphics in TiKZ with XeLaTeX get displaced

I have a problem with \includegraphics within TikZ with XeLaTeX, namely that the images get displaced. This is similar to the problem described in this question, but the symptoms are different. ...
25
votes
6answers
29k views

How do I convert Open Office documents into LaTeX?

Is there a good utility for this? Does it more than the standard stuff, or does it also do formulas and poems etc. in a good way?
0
votes
0answers
7 views

how to set the width of a custom column type and make the first row / title of a threeparttable fit that particular width

I have the following table I would like : to fix a row to a certain width of the custom \newcolumntype{L}{D{.}{.}{2,5}} (which allows to align the decimal of the item of the column instead of the ...
70
votes
4answers
5k views

What is “expansion”?

I'm relatively new to (La)TeX, but I have a reasonable amount of experience with computational programming languages. Until I began learning (La)TeX, I'd never heard of "expansion"... So, what is "...
0
votes
0answers
24 views

Table of contents?

I'm fairly new to latex so I would like to know how do I insert a table of contents? I have four chapters each with subsections so how must I add table of contents? P.S. I tried using, \...
1
vote
1answer
361 views

Can't zoom on u3d object in pdf

I am trying to make pdfs with u3d objects embedded, however when doing so I note that I cannot zoom in on the object, either by scrolling, or switching to the zoom tool. Interestingly, the pan tool ...
1
vote
2answers
15 views

Add image in Two - Column CV

Please find the format of two-column CV in https://www.sharelatex.com/templates/cv-or-resume/two-column-cv I wish to add my photograph within the yellow box. But when I am adding it, the yellow ...
0
votes
0answers
8 views

Cross-referencing multiple index entries

I need to create some 'collective' entries in my index, that cross-reference all the relevant entries in a certain category; however, the default behavior of makeindex seems to be to repeat the word ...
0
votes
0answers
13 views

Adjust space between base and superscript

I noticed that, in math mode, the top right corner of some letters, such as N or K, seems to clip into the superscript that follows the letter. I'm attaching an example: I guess a local solution ...
3
votes
2answers
5k views

TikZ: the scale option changes font size

When I use \begin{tikzpicture}[scale=X] with X<1/X>1 then font size of text in the picture is also changed. I need to use [scale=2] or [scale=0.5] and to preserve font size (e.g. normalsize). \...
2
votes
3answers
86 views

Tractatus-style paragraph numbering

How can I keep track of a decimal number that indicates the current paragraph's place in a logical hierarchy and print it in the margin of each paragraph? (To yield a numbering in the style of ...
27
votes
6answers
16k views

Scaling a TikZ figure from an external file

I would like to insert figures which were created with TikZ to my LaTeX document. I suppose that if I create the TikZ figure inside the document, that wouldn't be a problem - I'd just play with the ...
1
vote
2answers
32 views

center caption of image

i have code but caption does not in center and not below of image MWE: \documentclass{article} \usepackage{caption} \usepackage{tikzpagenodes} \begin{document} \begin{figure} \begin{center} \...
0
votes
1answer
19 views

LyX interface too large

I am having a problem with LyX on my laptop. I am running Windows 10 at a resolution of 3840x2160. When I open LyX, the interface is simply too large: So large in face, I can't even "apply" any ...
0
votes
1answer
15 views

Autosizing for expectation with additional index

I was trying to define a new command for an expectation which scales the vertical dash (in case of conditional expectation) and parenthesis to the argument, respectively. Additionally, I want to have ...
1
vote
1answer
62 views

Tikz/pgfplots Reduce distance between Tick labels line break

I'm pretty desperate with a problem I have right now. I'm trying to create a lollipop plot that has different categories on the y-axis and occurrences on the x-axis. According to the below code. Note ...
0
votes
3answers
21 views

How to shrink a large table within the default margins?

I have this large table and wish to squash it to fit the default margins, is a solution please? \documentclass[12pt, a4paper]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
1
vote
1answer
122 views

problem with varwidth package

I had a book that contains the varwidth package. Until now everything was OK, but finally this error appeared: Sorry, but "C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe" did not ...
0
votes
0answers
27 views

Can't Build my PDF

I am trying to build my pdf but this issue comes up, " Error : could not start the command : pdflatex -synctex=1 -interaction=nonstopmode "4.6 notes variation of parameters".tex " I may have ...
5
votes
2answers
82 views

How to use Noto Color Emoji with lualatex?

I want to use Noto Color Emoji with lualatex (package fonts-noto-color-emoji on my box). However, this fails as follows. How to use Noto Color Emoji with lualatex? \documentclass{article} \usepackage{...
1
vote
0answers
7 views

Long abstract for technical report orphaning Abstract title due to vfil

When using a custom template to prepare a report I noticed that long abstracts split across pages, fine, but it leaves the abstract title hanging by itself on it's own page. How can I structure the ...
3
votes
2answers
32 views

Add a line in a table plot with tikz

I am plotting data with pgfplots. I would like to add a line to this plot. My code is as follows \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{tikzpicture} \...
1
vote
1answer
41 views

Weird alignment in [closed]

For some reason, the following code compiles as shown on the picture. \begin{equation} t_{0\rightarrow1} \equiv\frac{1}{2}(X-iY) = \begin{pmatrix} 0 & 0 \\ 1 & 0 ...
3
votes
0answers
62 views

1920s maths textbook font [duplicate]

I was wondering if the font used in this old mathematics textbook (which I've seen in so many other books as well) is available on LaTeX, and if it covers maths as well. Thanks. PS I've looked at ...
2
votes
0answers
32 views

Is there a way to create a database and extract data from it through a command?

I have looked up packages such as datatool, but I am not quite sure if they would be able to perform this function. The basic idea is that I would like to have a database similar to a bibtex file, ...
4
votes
1answer
48 views

dash path between two intersections with other path

I wish to dash the red path when it is between the intersections with the blue path. How can I do this using paths names? \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \...
3
votes
3answers
26 views

Adjusting vertical spacing in fractions?

Consider the following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} t = \frac{\dfrac{T_1}{T_2}}{1+\dfrac{Q_1}{Q_2}} \end{equation*} \end{document} It ...
0
votes
1answer
28 views

Force Truncate Author List in Citation for long list of authors

I am writing an research article using elsarticle. It uses natbib with a custom bst file for citation. I could not modify it in a way so that in citation, it would truncate the authors list with et~al....

15 30 50 per page