Search found 13 matches

by gallioleo
Mon Aug 15, 2022 7:51 pm
Forum: General
Topic: readarray fails with underline in path
Replies: 0
Views: 2065

readarray fails with underline in path

Hello Latex Gurus,

i have following MWE. For the first case with test.csv works my code very fine for the second dataset test_data.csv crashes the compiler with:

[cmd]
! Missing $ inserted.
<inserted text>
$
l.52 OK: \csvval{test_
data.csv}{1,1} % fail caused by '_' in file name
?
[/cmd ...
by gallioleo
Sat Feb 19, 2022 6:40 pm
Forum: General
Topic: readarray + siunitx and macro expansion fails
Replies: 1
Views: 1690

readarray + siunitx and macro expansion fails

Hello Latex Community,

i try to read values from a csv file and propagate it into the package siunitx. But siunitx expects values und no macro code. How can i expand it to the real value? Below the MWE:


\documentclass[
fontsize=12pt,% changed because of the package info in the log file
DIV=14 ...
by gallioleo
Sun Feb 13, 2022 9:04 pm
Forum: Graphics, Figures & Tables
Topic: pgfplots axes label in si unit
Replies: 4
Views: 5722

pgfplots axes label in si unit

Hi, now i have an addtional question, how can i aggregate settings from pgfplots.

I like to define this as own switch:
\pgfplotsset{%
% prepare for convert
scaled ticks=false,
log ticks with fixed point,
% x-lin, y-lin
every linear axis/.append style={xticklabel=\siSetLinAxes},
every linear ...
by gallioleo
Sat Feb 12, 2022 7:02 pm
Forum: Graphics, Figures & Tables
Topic: pgfplots axes label in si unit
Replies: 4
Views: 5722

pgfplots axes label in si unit

Nice page you mention, but i search for an general solution. Arbitrary waveform data in, and axes in si. But now i have an solution:


\documentclass[
fontsize=12pt,
DIV=14
]{scrreprt}


\usepackage[english]{babel}
\usepackage{pgfplots}
\usepackage{graphicx}
\usepackage[binary-units=true, detect ...
by gallioleo
Sun Feb 06, 2022 1:10 pm
Forum: Graphics, Figures & Tables
Topic: pgfplots axes label in si unit
Replies: 4
Views: 5722

pgfplots axes label in si unit

Hi,

in the meantime i found a solution for linear axes, but with logarithmic i still fail, cause '\tick' contains for logarithmic plots the natural logarithm, that means i must calculate e^\tick based on the context. For linear plots i can directly use \xtick.

Does anybody has an idea, how to ...
by gallioleo
Sat Jan 29, 2022 2:05 pm
Forum: Graphics, Figures & Tables
Topic: [SOLVED] siunitx \num{} convert to engineering notation
Replies: 2
Views: 4829

[SOLVED] siunitx \num{} convert to engineering notation

Hi Tex Community,

i try to convert a scientific numer, f.e. 100e3 to the belonging engineering notation 100k. With a unit works this proper with \SI{}{}, but when i try only a number with \num{} then i get only the exponential notation. Does anyone has an idea how \num{100e3} produces as output ...
by gallioleo
Sat Jan 22, 2022 1:31 pm
Forum: Graphics, Figures & Tables
Topic: pgfplots axes label in si unit
Replies: 4
Views: 5722

pgfplots axes label in si unit

Hi Latex Community,
i look for an way to write si units on the axes labels of pgfplots. See MWE below. The goal is to replace for instance 10^3 by 1k and so on. Ideally is this computed by siunitx.


\documentclass[
12pt,
DIV=14,
final
]{scrreprt}


\usepackage[english]{babel}
\usepackage ...
by gallioleo
Fri Nov 19, 2021 9:33 pm
Forum: General
Topic: lineno number caption w/ honor '\linenumbers'
Replies: 7
Views: 10492

lineno number caption w/ honor '\linenumbers'

Hi again, for the tabular environment i like to use the same hook, but at the moment i fail to get it to work. Please take a look again:


\documentclass[
12pt,
DIV=14,
main=english,
final
]{scrreprt}


\usepackage{babel}
\usepackage[hang,footnotesize,bf]{caption}
\usepackage[left, pagewise ...
by gallioleo
Fri Nov 19, 2021 2:31 pm
Forum: General
Topic: lineno number caption w/ honor '\linenumbers'
Replies: 7
Views: 10492

lineno number caption w/ honor '\linenumbers'

No problem, i switch to continous numbering and then did does not happen.