0
votes
0answers
6 views

why scale for arrow head works only for default > and not for latex and stealth and other types?

I am following the answer here where it shows how to adjust the arrow head. It works, but only for default > arrow head. When I change it to latex or stealth or any of the other types of arrow ...
0
votes
1answer
14 views

Fixing a class file

This may be a problem with too narrow an audience for this forum, but I'm rather stuck at the moment. I'm attempting to build my dissertation document. My school's style guide is decidedly ...
0
votes
0answers
7 views

Atbeginsection and Atbeginsubsection

Is it possible to have pages displayed for both sections and subsections? As I see it, I can only choose between \Atbeginsection and \Atbeginsubsection. Thank you
0
votes
0answers
11 views

Include a package in a new environment

I am trying to set a new environment and I want to include the lstlisting package. This is what I wrote \newenvironment{code} { \selectlanguage{english} \fontsize{8}{10} \selectfont ...
0
votes
1answer
10 views

Problems with glossaries

I'm going to use a lot of definitions in my work, so I want to create the glossary. I've found the example here . I have a file words.tex where definitions are situated: ...
0
votes
0answers
6 views

“the remote package repository is not registered”

I'm getting this error and don't know how to fix it. Is there some way to specify a different package repository? I'm no expert on MikTex so I was hoping there was something easy. I tried running ...
0
votes
0answers
1 view

headindent in thmbox environment

I want to define an environment with thmbox style M and custom the headindent. I try .... Here the code : \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \usepackage{lipsum} ...
1
vote
0answers
23 views

How to draw using Tikz

I am a latex beginner and I have seen lots of examples here that are beautiful works in TikZ. My problem is that TikZ requires some very precise values (like coordinates and sizes) and my only way to ...
0
votes
0answers
2 views

How can I change toc font when using abntex2 template?

I am trying to change the font of my toc, I already searched a lot, and I found many ways, but it didn't work for me. I want to change the actual font to Times New Roman. Somebody could help me? I ...
1
vote
0answers
12 views

why is adding \catcode`\:=11 \catcode`\@=11 makes tex4ht fail to compile tikz picture?

I found interesting problem. In my tex4ht configuration file, I have the line that says \catcode`\:=11 \catcode`\@=11 It have been there forever. I think it was to solve a problem from this ...
0
votes
0answers
7 views

wrapfigure jumbles up rest of page alignment?

I'm using TeX to make a book and I use wrapfigure to add side notes from time to time. What happens though is that the horizontal space occupied by the side notes seems to remain occupied for the rest ...
0
votes
1answer
17 views

pdf allow assembly

I am having problems uploading my cv to many sites. It is written with pdflatex. I think that the problem is that the .pdf will not assemble into a bigger pdf at the other end. I have tried pdftk ...
2
votes
1answer
22 views

Putting a title on a pie chart

How do I put a title on the following pie chart? I tried using \stackon. \documentclass[10pt]{amsart} \usepackage{mathtools,systeme,array} \usepackage{tikz} \usepackage{adjustbox} ...
3
votes
1answer
11 views

Spurious space on moderncv \cventry using \if

I am trying to display some information in a \cventry conditionally using a defined \ifdetails switch. However, for some reason that is beyond my knowledge, an spurious space (or new line) is created. ...
2
votes
1answer
11 views

Cropping a TikZ display

I have a display of two intersecting lines and a ray starting at the intersection of the two lines. I use path commands \path[name path = left.side] (-3.75,-3.75) -- (-3.75,3.75); and \path[name ...
1
vote
0answers
9 views

Six figures (3x2) on one page using subcaption package?

I want to have 6 figures on one page distributed on 3 rows and 2 columns. I've tried using \begin{subfigure} in the subcaption package without any luck. The figures are displayed correctly, but any ...
2
votes
1answer
12 views

Package that receives a number #1 and return #1-1

I'm working with a counter but I'm having some problems with the index. This is my problem: I'm using a command with \arabic{#1} with some input #1. But I need to print \arabic{#1-1}. I would like ...
2
votes
2answers
27 views

what is the correct syntax for using let in tikz picture?

I am looking at this answer But still can't get the syntax right. I have this example to draw a line of length 2 units, which works fine: \documentclass[12pt]{article} \usepackage{tikz} ...
0
votes
1answer
8 views

Modify indentation in ganttbar titles (pgfgantt package)

I'm using the pgfgantt package to create a gantt chart but some links are overlapping with the titles of ganttbars. How Can I add some indentation to avoid this overlapping? \begin{ganttchart}[hgrid, ...
0
votes
0answers
5 views

TeXnicle bibliography error using biber

Using biber as Biblatex backend and typesetting with TeXnicle no bibliography is produced as an output, with log messages saying that all my citations where undefined, and with the following message: ...
0
votes
0answers
16 views

Margins of theorem style with a background color

I would like to make a theorem environment 1) have a background color 2) and can be spanned in 2 pages, if it is too long... So by adopting a solution here I have my code as follows: ...
2
votes
1answer
14 views

ToC heading pushed down with “tocloft”

ToC heading is pushed down when using tocloft package – even without any commands written. Leaving it out puts things back in place. Also I noticed the smaller the \document[font-size], the bigger ...
2
votes
2answers
17 views

Doing an interlinear text - how to combine lettrine with expex?

I am doing interlinear text with expex as described in this answer % !TEX TS-program = XeLaTeX \documentclass{article} \usepackage{fontspec} \setmainfont{Palatino Linotype} \setsansfont{Arial} ...
4
votes
2answers
43 views

How can I improve my “hands-on”/ “working” knowledge of TeX's low/middle/high/higher -level control sequences?

I am not an experienced TeX/LaTeX user. I know just about enough to write my thesis. As my interest grows, I'd like to continue improving on my TeX/LaTeX knowledge, more specifically, my "working" ...
1
vote
2answers
14 views

Per-chapter page numbers (<chapterPage>/<chapterPageCount>)

I am currently working on a document which needs a header which contains the page number and page count within the current chapter. \documentclass[a4paper,12pt]{scrreprt} ...
4
votes
2answers
41 views

displaying ?? instead of the name of the lstlisting when using \cref

I change the name of the label of the lstlisting to Algorithm and it works fine for the caption. But when I use \cref, the instead of displaying algorithms 1 it shows ?? 1. \documentclass{scrreprt} ...
1
vote
0answers
17 views

Show two pseudo codes in 2 columns in the middle of one-column article

I have two pseudo codes in an one-column article. To save space I would like to put them in two columns. When I use \begin{multicols}{2}, \end{multicols} before and after the algorithms they totally ...
7
votes
3answers
59 views

Shading areas in TikZ

It's an easy TikZ question for people who use it. I tried reading the TikZ manual p. 112 several times but it seems too complicated on the filling part, all the infinity and whatnot... So I currently ...
3
votes
2answers
13 views

Passing parameter in presence of an xkeyval value

I still have some problems with parameter passing in my macros. The MWE below, compiles and runs fine. If you uncomment wide, it mismatches \begin{figure*} with \end{figure}. However, this error goes ...
0
votes
0answers
11 views

Writer2Latex table border removal

I'm using Writer2Latex to convert my .odt file, created in Google Docs and downloaded as .odt format, to .tex. It works but because there is no way to create columns of text in Google Docs other than ...
2
votes
1answer
27 views

Write characters in the font used in \section without using the command \section

I'm writing a \documentclass{article} I really like the font used in the command \section I write text using this command. Things like: \section{Problem 1} I want to know if there is a better way ...
3
votes
1answer
21 views

replace rule below title with box

I'd like to change the rule above and below the title in this document, instead putting the title, author and date information inside a (hopefully stylish looking) box. Any help appreciated! ...
2
votes
3answers
35 views

Latex fonts Cyrillic fonts with lh

I am new in latex and trying to LH fonts for output different Cyrillic texts. Can someone help me, please!!! I need something like that \documentclass[10pt,a5paper,draft]{book} ...
3
votes
1answer
25 views

edit an enviroment to add to a new extra parameter

I'm trying to define a new \newenviroment but I'm having some problems. I need an enviroment that uses a counter and uses an extra parameter to write some text. I'm working with this enviroment: ...
1
vote
1answer
33 views

Bibliography style

I want to compile a latex document using bibtex. Can anyone suggest a bibliography style which compiles journal articles as Author Surname, Initials. Title of the article, \it{Name of Journal}, ...
3
votes
2answers
63 views

A single row background colour

Below is my code. How do I add a background colour to the first row (only the first row, please)? \begin{table}[!htb] \centering \begin{tabular}{c c c} \toprule ...
1
vote
0answers
37 views

Problems with “simple” table

After lots of attempts, I've been unable to get a table exactly as the one below. I don't know if somebody could give me some advice. . Thanks! C.
0
votes
1answer
15 views

twoside breaks spacing

I'm using minipages to keep related questions together on a test that I'm writing. When I make a 2-sided document some of my spacing gets messed up before the section break. It works fine if I leave ...
0
votes
0answers
13 views

How to change the styles (.sty) path in Lyx?

I am using LyX Version 2.1.3 (for Mac Yosemite) Library directory: /Applications/LyX.app/Contents/Resources/ User directory: ~/Library/Application Support/LyX-2.1/ If I go to Tools-> TeX ...
0
votes
1answer
10 views

Unwanted Vertical Space before figures in IEEE Tran Latex document

I am trying to insert .eps figures in my IEEE tran latex document. My figures are shifted down from the original position. Although the figure captions are in their desired positions. I have used word ...
2
votes
1answer
40 views

How to Remove the Self adding TOC and still keeping the \hyperef to the TOC?

Hey anyone know how to keep the link to TOC due to \hyperref but still be using something like \tabelofcontents* og \keepFromToc to hide the TOC link in the table of contents. First time asking here ...
2
votes
0answers
35 views

Hungarian babel makes English headers strange

I am writing a book mainly in English but it contains substantial Hungarian text, so I would use \usepackage[magyar,english]{babel} However, this makes chapter numbers in the headers look weird. ...
4
votes
1answer
9 views

Using bytefield as parameter to self-defined macro raises error

I defined a simple LaTeX macro \bansen which takes a single argument: \newcommand{\bansen}[1]{#1} Unfortunately, I noticed that I can not use a bytefield environment as a parameter for this macro ...
7
votes
2answers
128 views

How to influence a command throughout the document?

I have a long document which includes quite a lot of \textbf{...} and \textit{...} even just in the middle of sentences. I would like to put something in the preamble in order to make every text that ...
0
votes
1answer
24 views

Extra files when compiling tex [duplicate]

When building a LaTeX file (with Texstudio, if that's important) in addition to the .tex and .pdf files, there are also .aux, .log, and .synctex.gz created. What do these extra files do?
2
votes
0answers
25 views

Legend entry for each point in scatter plot with matching color

I have a file with multiple columns, of which I create scatter plots where positions are given from column 1 vs column 2, while the mark color is based on column 3. I now wish to automatically create ...
4
votes
2answers
109 views

Replacing braces in strings

I know I should probably not want to, but say for the sake of discussion that I wanted to remove braces from a string for some purpose (background, now obsolete). From its package description, ...
1
vote
0answers
13 views

How to clip a PSTricks image to its boundaries

I have a PSTricks pspicture where certain elements go beyond the boundaries of the Image itself. I tried using \clipbox, but that either completely removed the entire image or didnt change anything at ...
1
vote
2answers
35 views

How can I typeset this optimisation problem?

I need to reproduce the following equation: I've tried the following: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{aligned} & \text{minimize} ...
1
vote
1answer
13 views

Algorithm nested for loops generate a blank line

%!TEX program = xelatex \documentclass{article} \usepackage{algorithm} \usepackage{algorithmic} \begin{document} \begin{algorithm}[] \caption{LDA} \begin{algorithmic}[1] \FOR{$d$} \STATE{ ...

15 30 50 per page