Questions tagged [renewcommand]
12 questions
7
votes
2 answers
How do I use \renewcommand to get BACK my greek letters?
I'm a LaTeX newbie, but I've been doing my homework, and now I have a question that I can't seem to find the answer to.
I create the definition of an equation, let's just say it's this one:
The potential is characterized by a length $\sigma$ and an…

TopherGopher
- 655
- 11
- 21
5
votes
1 answer
Pandoc markdown bold and color
I am using pandoc and write my text in markdown. To create my own style I use a custom latex template.
I want to style all bold words with a color. So when I type **a word** this word should not only be bold, but also e.g. blue.
Using the following…

FredMaster
- 1,211
- 1
- 15
- 35
3
votes
1 answer
How can I redefine a starred LaTeX command that take parameters?
I am trying to redefine \chapter command like this
\let\oldchapter\chapter
\renewcommand\chapter[1]{{\color{green!30!blue!80}\oldchapter{#1}}}
These instructions were working before I start using the starred version \chapter*, but now I get…

Hamza Abbad
- 564
- 3
- 15
2
votes
1 answer
How to define the actual column width in two-column Latex document (excluding the space between the columns)?
I would like to redefine \columnwidth and set it to the value corresponding to (\textwidth-\columnsep)/2.
This is because I would like to use this redefined command inside tabular environment for controlling column width.
The problem with…

Marina
- 330
- 1
- 6
- 15
2
votes
2 answers
newcommand for \end{tabular}\\? Getting around syntax and escape
I have a table-making program that creates tables for me. One problem, however, is that it isn't written very well.
For example, I would like it to make a table that looks like this:
\begin{tabular}{|l|lll|l|}
\cline{1-1} \cline{5-5}
id & x …

genauguy
- 195
- 1
- 11
2
votes
1 answer
Latex \path command inside \newcommand definition not working?
I would like to use the \path command inside a \newcommand definition inside a latex document. However my definition does not work as I would expect it to work. A minimal example for this is…

ladi
- 1,518
- 2
- 13
- 19
1
vote
1 answer
How to rename tables?
I'm writing a paper in Spanish, and I need the name of my tables as "Tabla," not as "Cuadro" which is the current name.
I used the command:
\renewcommand{\tablename}{Tabla}
But it is not working, as nothing changes. I do not have any error when…

Victor Reyes
- 21
- 1
- 5
1
vote
2 answers
Rename monthnames in LaTeX
I've got a seemingly small problem using LaTeX, which i can't find the answer for after quite a bit of internet searching...
I'm writing a schoolassignment in faroese, and want to change the \date(\today) names to faroese.
I guess i have to use the…

Gunnar Sjúrðarson Knudsen
- 441
- 4
- 17
1
vote
1 answer
Newcommand hangs LaTeX compilation
I have a problem in the definition of a new command in LaTeX for lstlisting. The result is that the compilation hangs without error message, just a *.
This hangs the LaTeX…

leandro
- 175
- 8
1
vote
3 answers
0
votes
0 answers
How can I change the table of contents' name in RMarkdown?
I want to change the Table of Contents' name into my own language, as now it appears as Contents.
So far, I did change the caption for figures as follows:
\renewcommand{\figurename}{Figura}
But this command is not working for Contents,…

Maria
- 173
- 7
0
votes
1 answer
Unsuccessful changing 'Chapter' to 'Annex'
I am trying to change the title 'Chapter' in appendices into 'Annex' but am unable to do so. I looked up and found the solution as
\renewcommand\appendixname{Annex}
but this does not solve my problem and the title still shows as 'Chapter'.
My guess…

HoppyHOP
- 19
- 3