# All Questions

175,561 questions
11 views

### Adjusting the column width of a specific column in table?

I have created a table where some row cells are merged. Because of this, the merged cells are not "aligned" because two columns have different widths. It is more apparent when you look at an ...
79 views

### How do I partition a matrx into blocks and replace zeros with dots?

I am using this command W = \left( \begin{array}{ccccccccc} 1 & 0 & 0 & 0 & -1 & 0 & 0 & 0 & -1 \\ 0 & 0 & 0 & 0 & 0 & 0 & ...
18 views

### Classicthesis bibliography formatting

I am using classicthesis to write my PhD thesis. I need a way to customize the margins of the bibliography (I'm using biblatex) and avoid a huge number of just slightly overfull hboxes (e.g. just ...
42 views

### Is there any way to tell the compiler, inside the main file body, how to find the class?

I would like to use a class that belongs not found in my MiKTeX database. I know I might as well pick up this class and put it in some directory inside the base and update MiKTeX, but I do not want to ...
125 views

### Imitating a conveyor belt in TikZ

I have two circles of radii 4 and 5 drawn in blue and line segments drawn in purple between them so that the endpoints of them are perpendicular to radii of them. To give the impression that this ...
12 views

### Sending filename to VS Code to build latex file

I want to build tex file in VS Code. I have tasks.json like this: { "version": "2.0.0", "tasks": [ { "label": "Run lualatex", "type": "shell", "...
19 views

### Definecolor Not Working in Beamer

I have an A0 poster in beamer which I'm trying to create some of my own colors for, however my code refuses to acknowledge \definecolor . Here is my full preamble which compiles fine when the ...
21 views

I need your helps. I want to change interval inside text. But cannot. There's my document: \documentclass[a4paper, 12 pt]{article} \renewcommand{\baselinestretch}{1.5} \usepackage[pdftex]{graphicx} \...
30 views

### Include SVG's in an equation

I want to include some svg image within an equation. Until now the code looks like $$\def\svcscale{1.5} A = \includesvg{AMC/3J}$$ But with that, the symbol is not in ...
99 views

### Best way to draw this in tikz?

I'm trying to draw the figure below in latex. What would be the best way to do this? I have used mathcha and have this attempt. If I paste my code could someone help me sharpen the arrows on the ...
15 views

### How to add more clearance near the brackets of blockarray blocks?

In the image above, we can see that blockarray barely leaves any clearance between the matrix content and the brackets around it. The distance from the first row to the orange line is extremely small. ...
27 views

### Looking for an editor that supports editor-based notes/comments

I'm relatively new to LaTeX and I'm currently looking for a suitable LaTeX editor. Right now I'm using Texmaker, which seems fine, but I'm really missing the possibility to write editor-based notes as ...
19 views

### putting a footnote in the caption of a table within a figure

I have lots of figures with multiple subfigures and associated tables, and I have been asked to add footnotes to them. Here is a minimalish working example of a figure including a table on a page ...
29 views

### LuaLatex Rendering from input buffer instead of filename

I am trying to create pdf by passing buffer instead of filename but have certain issues.PDF size is only limited to two pages and can include only two pictures.Following is the full scenario. I have ...
37 views

### Why does \renewcommand{\Pr} trigger “Limit controls must follow a math operator” with MathJax+htlatex?

I have ht5mjlatex.cfg as defined here, and a foo.tex containing: \documentclass{article} \renewcommand{\Pr}[1]{P(#1)} \begin{document} $\Pr{h}$ \end{document} As described in that post, I try to ...
66 views

### Textmaker does not generate a PDF file? [duplicate]

I have compiled so many source codes files in latex and it works perfectly. I downloaded another template and run but my texmaker could not generate the pdf of that file. Although I have tried this ...
73 views

### Underbrace equation issues

I am trying to write this equation (see attached image) But I have been unsuccessful. So far I have this : \label{eq23} {C_E}^* = \underbrace{{\underbrace{1 - a_{C_E}}_{\...
32 views

### Arrows along a partial named path

I am trying to reproduce following image: For that I create 3 nodes, a support path (mycurve) and (hidden) support lines (l1 to l12) then place other nodes on the lx and mycurve intersections. This ...
50 views

### How to add gif file to overleaf?

I'm trying to add my gif file to my project. However, any suggestions on internet and forums are not working for me. I just have 11 pictures and i make them a gif file. How can i help a gif file or ...
35 views

### Show table footnotes at the end of the page

I have a table which contains footnotes. I want these footnotes to appear at the end of the page, but nothing is displaying. However footnote numbers are there in the table. I have tried doing this ...
58 views

### Marking down an arrow in an equation

How to write this equation in LaTex? y_t^s=\underset{\underset{\scriptstyle\text{Output of firms with one year old contracts}{\scriptstyle\downarrow}}{\frac{1}{2}(P_t-w_t(t-1)+u_t)}+\underset{\...
39 views

### Read a table from an external Lua file and print its content

I am working on a project for creating some flashcard, and I have saved the strings I want to include in the flashcard in an external file called all_text.lua and the data are stored in a linked list ...
15 views

### Forcing a bibliography link with very long file name to stay within column width

The image above is for a reference in double-column IEEEtran class. One potential solution is mentioned in Forcing linebreak in bibliography with natbib, but this works when there are no single ...
21 views

### Trouble with the listings package command \lstnewenvironment [duplicate]

Consider the following example: \documentclass[oneside,article]{memoir} \usepackage{listings} \usepackage[lining]{ebgaramond} \usepackage[cmintegrals,cmbraces]{newtxmath} \usepackage{ebgaramond-maths}...
49 views

### Draw dipoles and tripoles with blocks

In order to draw a circuitikz picture with a transformer, I have to draw the transformer first, as in the following code. %Flyback \begin{circuitikz}[scale = 1.5] \draw (0,0) node[transformer, ...
21 views

### List of abbreviations using nomencl package in texmaker

For my thesis I would like to add a list for abbreviations. This is what I have so far: \documentclass[12pt]{article} \usepackage[refpage]{nomencl} \makenomenclature \begin{document} \nomenclature{...
33 views

### Multiple language typesetting using Babel

I want to write languages such as spanish, english and urdu as well as some indic languages such as hindi, tamil and bangali in the same texfile using Babel package. I have tried on spanish+english ...
66 views

### creating certificates automatically

I have to create certificates in Latex the format of which is already available with me. In this certificate, only the name of the participant changes and every other thing remains the same (including ...
30 views

### Latex leaves left part of the page as blank. How can i fix this?

At my last page, latex pushes my figure to the right side of the page and leaves whole left side as blank. Nothing like this happens for other pages. Why is this happening?
287 views

### Curly brackets below a word in an equation

How to write this equation in latex? I wrote this code but not getting it. E_{t-2}P_t=\frac{1}{2}(E_{t-2}m_t+\underbrace{E_{t-2}v_t}_\textrm{=0}-\underbrace{E_{t-2}u_t}_\textrm{=0}+(\frac{(1-\zeta )...
58 views

### Dark mode in TeXstudio [duplicate]

I cannot seem to properly configure my texprofile in TeXstudio to change to dark mode. I have downloaded the .txsprofile from this website, but upon following the instructions (saving the current ...
30 views

### how to fix inline math alignment in svg mode when using tex4ht?

fyi, reported also to tex4ht bug tracking https://puszcza.gnu.org.ua/bugs/index.php?424 This is a problem I knew about for years now, and never got the chance to ask about it except now. When using ...
16 views

### references did not appear [duplicate]

\documentclass[12pt,aspectratio=169]{beamer} \usepackage{bookman} \usetheme{Madrid} \graphicspath{{Arquivos/}} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage[T1]{fontenc} \...
79 views

### Does expl3 have alternative to \settowidth and \settoheight?

How can I substitute following code with expl3 interfaces (that do the same job)? \documentclass[varwidth]{standalone} \begin{document} \newlength\spaceWidth \settowidth{\spaceWidth}{\ } \the\...
32 views

### How to position multiple pgfplots tikzpicture in a single figure

I'm newer to latex and pgfplots, and have a question on how I can position multiple tikzpicture in a single figure. In my example, there are 15 tikzpicture in the figure - 3 rows and 5 columns. How ...
17 views

### Biblatex, authoryear, and first name abbreviations in citations [duplicate]

Here is an MWE: \documentclass{article} % \usepackage[backend=biber,style=authoryear]{biblatex} % \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @Book{pollis-schwab79a, editor = ...
39 views

### Color rows with \rowcolor and datatool \DTLforeach loop

I try to obtain alternate colored rows (just like the table is shown in the figure) using the datatool package and the \rowcolor command. I am following the datatool user manual example for striped ...
48 views

### How to start Cartesian placement from existing node

I use the graphs library to create graphs. The Cartesian placement is a very convenient tool for my needs. Sometimes I need to place a new node relative to an existing node that was automatically ...
39 views

### Print the “scale factor” on each figure as a watermark

From a previous question (\includegraphics: get the "scale" value of a figure whose size is expressed by "width") I learned how to get the scale factor of a figure inserted by the \...
69 views

### Can I defend against “Dimension too large” errors?

I'm trying to debug the error in "Dimension too large" error with too many tikzmarks which involves getting a Dimension too large error (duh). I have my suspicions as to what is causing it, ...
36 views

### align rows with columns of different widths

I've been failing to make a proper table where text width changes and have different sizes. Here is the table when I use tabulary environment. I want to have the columns have the same size and ...
15 views

### Changing space between number and name in List of theorems

In the list of theorems, I am trying to increase the space between the numbers and the name of the theorem. Unfortunately, my numbers get rather long, so they overlap with the names of the theorems. I ...
49 views

### Unicode Character/Symbol in Lua(La)TeX

I am trying to print a specific unicode character in LuaLaTeX using \documentclass{article} \begin{document} \char"2605 \symbol{"2605"} ^^^^2605 \end{document} However, none of these prints the ...
15 views

### latexmk with external references in both directions

I am aware of the question below about how to refer, in file1, to labels from file2. latexmk with external references However, I must also refer, in file2, to labels from file1. I am able to do it ...
42 views

### What does ucharclasses do here?

I'm trying to understand how to use the ucharclasses package. See this example: \documentclass{article} \usepackage{fontspec} \usepackage{ucharclasses} \newfontfamily\latinfont{Arial} \newfontfamily\...
45 views

### Drawing a horizontal \rule through the middle of a line

How can I do something like \noindent\rule{\linewidth}{0.25mm} but in a way that doesn't leave a big gap before it? Currently it's kind of like \bottomrule, almost as if it skips a line. I want it to ...
24 views

### Why standalone class reverses \parshape indentation (such that it appears on the end of each line, not the beginning) and how to change that?

You can replace \documentclass[varwidth]{standalone} with \documentclass{article} to see the difference. How do I make \parshape work as intended while using standalone? \documentclass[varwidth]{...
33 views

### Change the page numbering to “(roman) - AAA”

This is an extended question from: Different Page Number Styles How to change the page numbering to something like: Page 1 numbering: (i) - AAA. Page 2 numbering: (ii) - AAA. Page 3 numbering: (...