Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
48 views

Trouble formating presorted table with csvsimple

\documentclass{article} \usepackage{caption} \usepackage{booktabs} \usepackage{csvsimple} \csvstyle{mystyle}{ tabular=|c|c|c|, table head=\hline Gruppe & Buchstabe & Zahl \\ \hline, ...
Roman's user avatar
  • 21
2 votes
0 answers
98 views

\iffalse not working inside of table

The following code is supposed to generate a table with a single row and two columns. It does however not compile. The error messages contains Incomplete \iffalse and A forbidden control sequence ...
M. Winter's user avatar
  • 531
1 vote
1 answer
71 views

\whiledo not working when using it to generate table

I'm trying to use \whiledo (contained in the ifthen package) to automate the creation of a table. The idea—more or less—is that by setting a value \colnum to a number x, I can make a table with x+1 ...
generallyconfuzzled's user avatar
0 votes
1 answer
455 views

Define new environment with conditions

I would like to define a new environment with conditions in my template file. My environment consists in a lign of header filled by a title (given at the environment in an argument) and then at the ...
jg35's user avatar
  • 1
0 votes
0 answers
77 views

Using if in tables (spreadtab, tabu)

I was trying to build a document with a table which could change its rows depending on whether the customer needs to pay tax or not. I tried to go with http://handyfloss.net/2007.08/latex-programming-...
Make42's user avatar
  • 1,832
2 votes
2 answers
550 views

"\ifthenelse" in minipage or tabular with "\\" in command argument

\documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \RequirePackage{ifthen} \begin{document} \makeatletter \newcommand{\coreitem}[3]{% \ifthenelse{\equal{#1}{}}{}{#1 \\}% \begin{...
user1850133's user avatar
  • 1,126
1 vote
2 answers
121 views

Table of Outcomes for If/Then?

I think I need a "table" of possibilities to go with an if/then command, but I'm not sure if one can do that in LaTeX. I'm generating random equations in the form y=lx+a where l=slope and a=y-...
WeCanLearnAnything's user avatar
3 votes
1 answer
1k views

Fill table automatically with a\ifthenelse inside a \foreach loop

Hi i've been trying to fill a 2 column table using a \foreach loop and inside i use a conditional to see if i do a line break or not: \newcommand\skillstext[1]{ \renewcommand{\skillstext}{ \...
RenéB's user avatar
  • 135
2 votes
1 answer
1k views

ifthenelse in Latex

I have a table in Latex and in the left part of it I have an empty boxes (\Square), I want to replace them to the \xBox in case if the certain value has been picked. I wrote command \newcommand{\...
Lucky_girl's user avatar
  • 1,405