# All Questions

178,762 questions
Filter by
Sorted by
Tagged with
5 views

### Defining command part by part 2

This question is an extension to Defining command part by part thread. Let's say we have a command \foo with 1 argument. Can we produce a command \setfoo{aaa}{<some stuff>} which redefines \foo ...
8 views

### Undefined Citation natbib / Failing to print References

I am using the natbib package to manage my references for my thesis. Unfortunately the citations are undefined and it prints "?" in the pdf rather than the actual Citation from my bib file. Neither ...
12 views

### Citations in strange order (usepackage{cite} and \bibliographystyle{unsrt}

so i have the following problem: I want my citations to appear in the bibliography in the order i cited them in my text and to be referenced in the text in that order. Now when I try to do that the ...
16 views

### Draw parts of a split rectangle in a dashed/dotted style

I try to draw parts of a split rectangle in a dashed or dotted style. Thus I want the following code \node[draw,rectangle split,rectangle split parts=2,rectangle split horizontal] {foo \nodepart[...
17 views

### TikZ: How to avoid white space when using “seam allowance”?

Assumed we have this very simple Minimum Working Example (MWE) to draw a straight line: \documentclass[tikz]{standalone} \usetikzlibrary{intersections,decorations.pathmorphing} \begin{document} \...
11 views

### Linking to index entries outside of the index

I use the splitindex-option for imakeidx for multiple indices, but I decided to organize my index entries additionally another way in a table. Since I am keeping my indices, I was wondering if there ...
21 views

### How to make currently selected color automatically transition to “saveboxed” pgf shape through \usebox?

I have some macros that draw shapes. They grew quite big and take much space so I decided to give it a try and make a package by migrating those macros to an .sty file. But I ran into a problem: the ...
34 views

### What does <recently read> etc. mean in TeX's error message

TeX will encounter an error with the following code: \documentclass{article} \test \begin{document} \end{document} It will give a message as: ! Undefined control sequence. <recently read> \...
32 views

### XeLaTeX and PDFLaTeX give different outputs for Tikz in TeXLive 2019 [on hold]

Consider the following code: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0)--(0,1) node[midway,sloped]{ABCD}; \end{tikzpicture} \end{document} When I ...
18 views

### Node positioning in Venn diagram

Consider the following MWE: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \draw (0,0) rectangle ...
17 views

### TikZ overlay doesn't work in book documentclass

I want to use \tikz[remember picture, overlay] option around an equation in a book class, but this doesn't seem to work. Whereas the same option works in beamer. Is there is any solution to this? ...
12 views

### \documentclass{scrartcl} not working in org-mode and emacs

I am trying to use org-mode for generating my documents in pdf format using MikeTex in Windows environment. When use the class \documentclass{scrartcl} in TexMaker, it is working properly. But in org-...
14 views

### ConTeXt: Introduce columnsets around chapters

Background The following screen shot shows four uneven columns, which is the desired result: Problem The beforesection and aftersection options to the setuphead command don't seem to have any ...
9 views

### How can I put all examples and theorems into boxes with different shaded in Lyx?

I am in the middle of writing a book with Lyx. I have definitions, theorems, examples, and solutions. Is there a way to put all definitions, theorems, examples, and solutions into boxes with ...
22 views

### Complete setup for XeLaTeX or LuaLaTeX in VSCode with Julia Code using Minted

I've asked the Julia community here my question, and have gotten some nice help. I thought I might cast a wider net for clarification. TL; DR: What is the complete setup for VSCode to run XeLaTeX or ...
23 views

### Equatorial plane intersecting a Bloch sphere

I have created a Bloch sphere and I would like to show the equatorial plane intersecting the sphere. I have tried the following but I am sure there is room for improvement. \documentclass[border=5pt]{...
13 views

### How to keep float page from going to end of document in two-column mode

I am using two-column mode with the revtex4-1 package. I want to place two large figures on their own page, but I want the page to be reasonably close to the location where it is written. I started ...
19 views

### Arabic, Greek & Hebrew in LuaLaTeX [memoir]

I have read this and looked at the babel package (link) and tried running the small Hebrew example (p. 24) in LuaTeX with document class memoir without any luck. Here is a simple example where I try ...
29 views

### Prevent line break after SOME (sub)section declarations

I am trying to prevent the automatic line break that happens after a (sub)section declaration, but only for some subsections. I know that I could use: \titleformat{\subsection}[runin] but this ...
42 views

### Spacing between rows latex table

I have extra space between the title and first numbered row of this table and it is driving me crazy, I don't know what is producing it. Any help greatly appreciated! \documentclass{article} \...
21 views

### Creating table with stacked variable names

I am having an issue with creating a regression table where I don't want the variable name to be super long and want it to sort of stack. For example, I want a variable name such as "first second ...
18 views

### Moderncvhead and moderncvbodyi warnings - ModernCV

I did my CV by using Texmaker on a PC; when I open the file on another PC it does not work, in particular the software gives me the following messages (I downloaded and updated MikTek as well): %-----...
46 views

### Setting Pi as colorbar tick with pgfplots

I am trying to set the colorbar ticks as -pi and pi. Is this possible within the colorbar style settings? This is what I have tried so far but it doesn't work. colorbar style={ %at={(0,1.0)}, ...
18 views

### TeX Live: “(lua): Not Enough Memory” | Chinese Fonts

I have a freshly installed and updated TeX Live system. I want to compile a simple LuaLaTeX document containing Chinese characters (see below, not a MWE, just for illustration). During the compilation ...
65 views

### Align the contents of a numerical matrix when you have minus signs

I have a matrix that looks like \begin{equation*} \left [\begin{array}{cccccc} 0 & 0 & 6 & -6 & 0 & 0 \\ 0 & 0 & -6 & 6 & 0 & 0 \\ 0 &...
33 views

### siunitx in tabular – align different types of data

I made a table with different types of data in a row. I'd like them to align along the decimal comma – as I thought the S would do. How can I achieve that? \documentclass{article} \usepackage[table]{...
33 views

### How to show page numbering after a specific page

I'd like to show page numbering after table of contents, but Latex starts showing page numbering on list of figures \documentclass[12pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[...
52 views

### is anyone else having problems accessing Latexbase.com? [on hold]

i have a doc on latexbase.com that i can't get access to because the website seems to be down. is there someone out there that has a clever workaround? Or maybe some information about why/how long ...
26 views

### Shifting graphics vertically within figure

I'm sure this is answered somewhere. I've looked, but still having trouble getting exactly what I'm trying to do. Perhaps I need to use something I'm not familiar with. I'm trying to shift one of two ...
20 views

### Changing the color a the title frame

\documentclass[xcolor=dvipsnames]{beamer} \definecolor{myblue}{rgb}{0.00,0.00,0.50} \setbeamercolor{title}{bg=myblue!80!white} \setbeamerfont{frametitle}{series=\mdseries} \usecolortheme[named=blue]...
18 views

### urldate not being considered

I am using IEEEtran as my bibliography style and using a Citavi bibtex file in my latex document. The problem is that urldate is not being taken by the compiler i.e. it is not shown in the pdf ...
28 views

### Tree of arrays using tikz [on hold]

I'm trying to explain a backtracking algorithm with a tree of arrays and I want to replicate this picture I made using ipe: But using Tikz. I'd like the tree to be more symmetrically balanced and ...
28 views

### How to include a set of four subplots (2x2) as one subplot of another set of (2x2) subplots using groupplots?

What I am looking for is something like this: and I have tried the next MWE: \documentclass[10pt,a4paper]{article} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \begin{...
18 views

### Page range truncation in index with memoir class

This is a follow-up question to Page range truncation with imakeidx. I cannot get egreg's solution to work, but it is not an issue with memoir class. In the example below, the page range comes out to ...
16 views

### How can I make a block align with a textblock?

I am trying to make a poster with beamerposter. I am using the textpos package to position textblocks on the poster. Inside the textblock I am using block to get a title and a list of items with a ...
20 views

### Plotting a surface with TikZ and pgfplots from a data set

I would like to plot a surface from the following data set (625 points) using tikz and pgfplots -0.5 -0.5 3.46623e-13 -0.5 -0.46 4.23572e-12 -0.5 -0.42 2.795e-11 -0.5 -0.38 1.30946e-10 -0.5 -0.34 4....
26 views

### Adding line numbers without lineno package

I've had several persistent issues with the lineno package and journal article templates (e.g., not numbering certain paragraphs). Is it possible to just add an "unaligned" column of line numbers on ...
23 views

### Bug tracing LaTeX page breaking penalties, adjusting rubber-length skips in KOMAscript

I use KOMAscript's scrbook class. I am very nitpicking about clubs/widows. Interestingly, most clubs and widows predominantly occur on pages that have multiple flows, displayed math environments and ...
22 views

### Title and bibliography

I have found a code that change the title presentation for each chapters of my document. However, this change the title placement of the bibliography. Is there a method to raise the title of the ...
12 views

### Enumerating paragraph with manual number

I have just started using Latex today and I have been looking into how to manually number the paragraphs inside enumeration. I am writing up the solutions to the problems which are not in consecutive ...
14 views

### Custom-edited bst file not being used [on hold]

I copied one of the existing bst files, edited it with a text editor and placed it in the same directory with my tex file. I also made reference to it in the tex file: \bibliographystyle{mybst}. ...
18 views

### Restrict x to domain with linear regression

It seems like "restrict x to domain" does not work with linear regression (as opposed to "skip first n=", but this option does not give the desired result). The code below is supposed to give a linear ...
6 views

### Specify first and last line by matching text with \inputminted (minted package)

I use the minted package which is similar to the listing package but provides richer highlighting. Both have a command to include some lines from an external source code file. With the listing ...
21 views

### How to control unnumbered section titles

Generally, able to write some conditional statement for the numbered sections by using the tag \ifnum #2 = (e.g., 1 is for \section command) which is inside in the tags \def\@sect#1#2#3#4#5#6[#7]#8{, ...
13 views

### MusixTex Tablature notation system

I would like to benefit from Tablature notational system of musixtex. Unfortunately the numbers are displayed as squares. \documentclass{article} \usepackage{musixtex} \begin{document} \begin{music}...
8 views

### Problem in removing conference's information in ACM sigconf format

I have used the below code to remove header and footer information but couldn't succeed in removing conference information("WOODSTOCK’18, July 29-August 3, 2018, City, State, Country") in the header (...
24 views

### Using the maximum value of two equations from a mathematical expression in a pgf plot

Good afternoon everyone, currently, I am making a graph to insert it into another document later on. It is a regression line in a dot cloud. (The dot cloud is represented by four coordinates in the ...
28 views

### Alignment of tabulars in tikz \node

I'm trying to get a bunch of tables, each of which contained in a tikz node, to all be aligned as though with anchor=north west, i.e. I basically want the \node point to be at the top left of the ...