Somewhat obscure but so simple!
These are the things that make make me think I'll never completely feel confident with latex: I didn't feel that tikz should parse something inside the math mode as a tikz command... and I don't really understand why it isn't parsed if it's in braces.
Thank you for ...
Search found 8 matches
- Fri Mar 22, 2024 10:40 am
- Forum: Graphics, Figures & Tables
- Topic: tick label with comma causes error
- Replies: 2
- Views: 50875
- Thu Mar 21, 2024 4:10 pm
- Forum: Graphics, Figures & Tables
- Topic: tick label with comma causes error
- Replies: 2
- Views: 50875
tick label with comma causes error
Hello,
have a strange problem running the following code: this works
\documentclass{standalone}
\usepackage{amsmath}
\usepackage{amssymb} %carica anche amsfonfts
\usepackage{pgfplots}
\pgfplotsset{width=20cm,height=7cm,compat=1.9}
\usetikzlibrary{arrows.meta,angles,quotes,decorations}
\begin ...
have a strange problem running the following code: this works
\documentclass{standalone}
\usepackage{amsmath}
\usepackage{amssymb} %carica anche amsfonfts
\usepackage{pgfplots}
\pgfplotsset{width=20cm,height=7cm,compat=1.9}
\usetikzlibrary{arrows.meta,angles,quotes,decorations}
\begin ...
- Thu Feb 01, 2024 1:02 am
- Forum: Text Formatting
- Topic: Is there a way to get different outputs from \newcommand?
- Replies: 5
- Views: 43780
Is there a way to get different outputs from \newcommand?
Thank you, exactly what I was looking for, I'll have to have a better look into this
\NewDocumentCommand
!- Tue Jan 30, 2024 2:32 pm
- Forum: New Members
- Topic: Hello
- Replies: 1
- Views: 8474
Hello
Hello everyone,
I'm actually an old member, too old... my account was deleted somewhere in my last 10 years of absence.
I recently found my self using Latex again so I think I'll be around more regularly!
I'm actually an old member, too old... my account was deleted somewhere in my last 10 years of absence.
I recently found my self using Latex again so I think I'll be around more regularly!
- Tue Jan 30, 2024 2:15 pm
- Forum: Text Formatting
- Topic: Layout of my CV
- Replies: 1
- Views: 1997
Layout of my CV
To start looking at what's happening you should press the "Code" button and place between the two bracketed commands a piece of working code (from
It would also help if you eliminate distracting pieces of code that are not involved in your problem.
\documentclass
to \end{document
})It would also help if you eliminate distracting pieces of code that are not involved in your problem.
- Tue Jan 30, 2024 12:49 pm
- Forum: Text Formatting
- Topic: Is there a way to get different outputs from \newcommand?
- Replies: 5
- Views: 43780
Is there a way to get different outputs from \newcommand?
I think I found the problem. If no argument is inserted, an empty value is returned which is different from a "NoValue" value, therefore \IfNoValueTF returns always false.
I found a couple of soutions to deal with the problem:
The first does not require packages but uses some somewhat cryptic Tex ...
I found a couple of soutions to deal with the problem:
The first does not require packages but uses some somewhat cryptic Tex ...
- Tue Jan 30, 2024 10:48 am
- Forum: Text Formatting
- Topic: Is there a way to get different outputs from \newcommand?
- Replies: 5
- Views: 43780
Is there a way to get different outputs from \newcommand?
I think I'm missing something: your reply seems logically what should do the job but doesn't work as I expected, in the No Value option the second option is executed with no value,
I changed a little the code to make it clearer I hope:
\documentclass{article}
\newcommand{\F}[1][]{
\IfNoValueTF ...
I changed a little the code to make it clearer I hope:
\documentclass{article}
\newcommand{\F}[1][]{
\IfNoValueTF ...
- Mon Jan 29, 2024 1:55 pm
- Forum: Text Formatting
- Topic: Is there a way to get different outputs from \newcommand?
- Replies: 5
- Views: 43780
Is there a way to get different outputs from \newcommand?
I'd like to have a command with optional input that does the following:
if there is no input the output would be A_{ab}
if I input [cd] the output would be A_{ab to cd}
At the moment I use \newcommand like this
\newcommand{\A}[1][]{\ensuremath{A_{ab #1}}}
but in this way I have to input "to cd ...
if there is no input the output would be A_{ab}
if I input [cd] the output would be A_{ab to cd}
At the moment I use \newcommand like this
\newcommand{\A}[1][]{\ensuremath{A_{ab #1}}}
but in this way I have to input "to cd ...