Math & ScienceArrays & functions

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
LaTeX Beginner
Posts: 30
Joined: Tue Sep 11, 2012 2:55 pm

Arrays & functions

Post by LaTeX Beginner »

Hi guys! :)

Look, I have defined a function (let's go call this function "A"), and A depends on a set of variables (including the generic \x variable). Imagine that A is defined as:

Code: Select all

\A=\b*\c*\x
Also, I want to know the values that A takes according to \x (imagine that I want to know these values between \x=0 and \x=10).

Thus, I want to store the values that A takes in a new variable (an array), which will have a total of 11 elements (0-10).

I know that, in order to do this, a \foreach structure could be used, but I don't know the way to do it...

I really appreciate your help, because always is very useful to me. :)

Thank you so much.
Regards.
Last edited by cgnieder on Mon Oct 22, 2012 12:50 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Arrays & functions

Post by cgnieder »

Are you using TikZ? Or pgfplots? (Just guessing since you mentioned \x and \foreach). A (complete) Infominimal working example really would help us help you!

Regards
site moderator & package author
LaTeX Beginner
Posts: 30
Joined: Tue Sep 11, 2012 2:55 pm

Arrays & functions

Post by LaTeX Beginner »

The fact is I'm using both, TikZ and PGFplots, but I've checked that TikZ doesn't work with arrays... or, at least, I'm doing something wrong...

This is an example about what I'm doing:

Code: Select all

\documentclass[11pt,a4paper,spanish]{article}
\usepackage[T1]{fontenc}
\usepackage{selinput}
\usepackage{babel}
\usepackage{geometry}
\usepackage{tikz}
\usepackage{textcomp}
\usepackage{pgfplots}

\usepgfplotslibrary{polar}
\usepgfplotslibrary[polar]
\usetikzlibrary{pgfplots.polar}
\usetikzlibrary[pgfplots.polar]

\begin{document}
\begin{center}
\pgfplotsset{width=15cm,compat=1.5.1}
\begin{tikzpicture}

\def\E{5}
	
\def\W{1.0}

\def\ReA{1.0}
					
\def\ImA{0.5}

\def\S{0.45}
                   
\def\FAR{\sum(\ReA*cos(x)*(180/pi)+\ImA*cos(x)*(180/pi))}
                                    
\def\FAI{\sum(\ReA*sen(x)*(180/pi)+\ImA*sen(x)*(180/pi))} 

\end{tikzpicture}
\end{center}
\end{document}   
I've defined the functions \FAR and \FAI, which depends on a set of variables. I want to know the values that \FAR and \FAI take according to \x, for values of \x between \x=0 and \x=100 (for example). And I want to obtain a couple of arrays that store the values that \FAR and \FAI take according to the variation of \x. This arrays will have a total o 101 elements (0-100).

I hope that I've explained me better! :)
Last edited by cgnieder on Mon Oct 22, 2012 11:59 am, edited 1 time in total.
LaTeX Beginner
Posts: 30
Joined: Tue Sep 11, 2012 2:55 pm

Re: Arrays & functions

Post by LaTeX Beginner »

Some example about how to do that? I really need to know it, I wouldn't ask you if it doesn't be really important...

Thank you! :)
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: Arrays & functions

Post by cgnieder »

It is really unclear what your goal is. A good answer depends on that. What do you need the array for? Displaying the data in a table? Do you need to access the array data by index? Do you need them to plot a function? ...

As there are no real arrays in TeX it depends on the actual use case how one would define a suitable array-like construct.

Regards
site moderator & package author
LaTeX Beginner
Posts: 30
Joined: Tue Sep 11, 2012 2:55 pm

Arrays & functions

Post by LaTeX Beginner »

cgnieder wrote:It is really unclear what your goal is. A good answer depends on that. What do you need the array for? Displaying the data in a table? Do you need to access the array data by index? Do you need them to plot a function? ...
Oh, I'm sorry if I don't explain me well... :(

My objective is get this array in order to plot it, but before I want to obtain this data displayed in a table
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Arrays & functions

Post by cgnieder »

For both tasks an array is not needed. You can plot them with pgfplots abilities directly. And a table can be created by looping through the values from 0 to 100 and storing the table rows in a macro. The following does both these things:

Code: Select all

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.6}

% parameters:
\def\E{5}
\def\W{1.0}
\def\ReA{1.0}
\def\ImA{0.5}
\def\S{0.45}
% functions:
\def\FAR(#1){(\ReA*cos(#1)*(180/pi)+\ImA*cos(#1)*(180/pi))}
\def\FAI(#1){(\ReA*sin(#1)*(180/pi)+\ImA*sin(#1)*(180/pi))}

% create the table contents:
\usepackage{longtable,array,siunitx,expl3}
\ExplSyntaxOn
\tl_new:N \tablecontents
\int_do_while:nn { \l_tmpa_int <= 100 }
  {
    \fp_set:Nn \l_tmpa_fp { round( \FAR( \l_tmpa_int * deg ) , 2 ) }
    \fp_set:Nn \l_tmpb_fp { round( \FAI( \l_tmpa_int * deg ) , 2 ) }
    \tl_put_right:Nx \tablecontents
      {
        \int_use:N \l_tmpa_int & % x
        \fp_to_tl:N \l_tmpa_fp & % FAR(x)
        \fp_to_tl:N \l_tmpb_fp \exp_not:N \\ % FAI(x)
      }
    \int_incr:N \l_tmpa_int
  }
\ExplSyntaxOff
\begin{document}

\begin{tikzpicture}
 \begin{axis}
  \addplot[domain=0:100,red] { \FAR(x) } ;
  \addplot[domain=0:100,blue] { \FAI(x) } ;
 \end{axis}
\end{tikzpicture}

\begin{longtable}{l*2{S[table-format=-2.2]}}
  $x$ & {$FAR(x)$} & {$FAI(x)$} \\ \hline
 \endhead
 \tablecontents
\end{longtable}

\end{document}
More information on pgfplots: pgfplots

More information on the expl3 programming layer: interface3

Regards
site moderator & package author
LaTeX Beginner
Posts: 30
Joined: Tue Sep 11, 2012 2:55 pm

Re: Arrays & functions

Post by LaTeX Beginner »

Thank you so much for your help! I really appreciate it! :D

I get some problems with the code, problems referred with some packages and archives (Siunitx, for example)... Now I've to do other things, but when I take this again, I tell you more.

Regards! :)
LaTeX Beginner
Posts: 30
Joined: Tue Sep 11, 2012 2:55 pm

Arrays & functions

Post by LaTeX Beginner »

Hi again! :)

I've been working on the solution that you provided me, but I get so many errors, that I couldn't repair... This is my code:

Code: Select all

    \documentclass{article}
    \usepackage{pgfplots}
    \pgfplotsset{compat=1.6}

        
	\def\E{5}	
	\def\W{1.0}
	\def\ReA{1.0}			
	\def\ImA{0.5}
	\def\S{0.45}		
	\def\I{(2*pi/\W)*\d*cos(x)*(180/pi)}

    \def\FAR(#1){\sum(\ReA*cos(\I)*(180/pi)+\ImA*cos(\I)*(180/pi))}
	\def\FAI(#1){\sum(\ReA*sen(\I)*(180/pi)+\ImA*sen(\I)*(180/pi))} 
    

    % create the table contents:
    \usepackage{longtable,array,siunitx,expl3}
    \ExplSyntaxOn
    \tl_new:N \tablecontents
    \int_do_while:nn { \l_tmpa_int <= 360 }
      {
        \fp_set:Nn \l_tmpa_fp { round( \FAR( \l_tmpa_int * deg ) , 2 ) }
        \fp_set:Nn \l_tmpb_fp { round( \FAI( \l_tmpa_int * deg ) , 2 ) }
        \tl_put_right:Nx \tablecontents
          {
            \int_use:N \l_tmpa_int & % x
            \fp_to_tl:N \l_tmpa_fp & % FAR(x)
            \fp_to_tl:N \l_tmpb_fp \exp_not:N \\ % FAI(x)
          }
        \int_incr:N \l_tmpa_int
      }
    \ExplSyntaxOff
    \begin{document}

    \begin{tikzpicture}
     \begin{axis}
      \addplot[domain=0:360,red] { \FAR(x) } ;
      \addplot[domain=0:360,blue] { \FAI(x) } ;
     \end{axis}
    \end{tikzpicture}

    \begin{longtable}{l*2{S[table-format=-2.2]}}
      $x$ & {$FAR(x)$} & {$FAI(x)$} \\ \hline
     \endhead
     \tablecontents
    \end{longtable}

    \end{document}
And this are the errors that I get...

Code: Select all

! Package pgfkeys Error: Choice '1.6' unknown in key '/pgfplots/compat/anchors'
. I am going to ignore this key.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...
l.3 \pgfplotsset{compat=1.6}
This error message was generated by an \errmessage
command, so I can't give any explicit help.
Pretend that you're Hercule Poirot: Examine all clues,
and deduce the truth by order and method.
! Package pgfkeys Error: Choice '1.6' unknown in key '/pgfplots/compat/labels'.
I am going to ignore this key.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...
l.3 \pgfplotsset{compat=1.6}
(That was another \errmessage.)
! Package pgfkeys Error: Choice '1.6' unknown in key '/pgfplots/compat/empty li
ne'. I am going to ignore this key.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...
l.3 \pgfplotsset{compat=1.6}
(That was another \errmessage.)
! Package pgfkeys Error: Choice '1.6' unknown in key '/pgfplots/compat/scaling'
. I am going to ignore this key.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...
l.3 \pgfplotsset{compat=1.6}
(That was another \errmessage.)
! Package pgfkeys Error: Choice '1.6' unknown in key '/pgfplots/compat/general'
. I am going to ignore this key.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...
l.3 \pgfplotsset{compat=1.6}
(That was another \errmessage.)
! Package pgfkeys Error: Choice '1.6' unknown in key '/pgfplots/compat/path rep
lacement'. I am going to ignore this key.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...
l.3 \pgfplotsset{compat=1.6}
(That was another \errmessage.)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\longtable.sty"
Package: longtable 2004/02/01 v4.11 Multi-page Table package (DPC)
\LTleft=\skip43
\LTright=\skip44
\LTpre=\skip45
\LTpost=\skip46
\LTchunksize=\count116
\LTcapwidth=\dimen163
\LT@head=\box36
\LT@firsthead=\box37
\LT@foot=\box38
\LT@lastfoot=\box39
\LT@cols=\count117
\LT@rows=\count118
\c@LT@tables=\count119
\c@LT@chunks=\count120
\LT@p@ftn=\toks31
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\array.sty"
Package: array 2008/09/09 v2.4c Tabular extension package (FMi)
\col@sep=\dimen164
\extrarowheight=\dimen165
\NC@list=\toks32
\extratabsurround=\skip47
\backup@length=\skip48
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\siunitx\siunitx.sty
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\expl3.sty
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3names.sty
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3bootstrap.sty
Package: l3bootstrap 2012/07/16 v3991 L3 Experimental bootstrap code
)
Package: l3names 2012/07/16 v3990 L3 Namespace for primitives
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc\etex.sty"
Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)
\et@xins=\count121
)
Package: expl3 2012/09/05 v4205 L3 Experimental code bundle wrapper
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3basics.sty
Package: l3basics 2012/08/27 v4144 L3 Basic definitions
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3expan.sty
Package: l3expan 2012/08/28 v4149 L3 Argument expansion
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3tl.sty
Package: l3tl 2012/09/05 v4201 L3 Token lists
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3seq.sty
Package: l3seq 2012/08/14 v4092 L3 Sequences and stacks
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3int.sty
Package: l3int 2012/08/17 v4121 L3 Integers
\c_max_int=\count122
\l_tmpa_int=\count123
\l_tmpb_int=\count124
\g_tmpa_int=\count125
\g_tmpb_int=\count126
\l_tmpc_int=\count127
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3quark.sty
Package: l3quark 2012/08/08 v4065 L3 Quarks
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3prg.sty
Package: l3prg 2012/08/16 v4114 L3 Control structures
\g__prg_map_int=\count128
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3clist.sty
Package: l3clist 2012/08/15 v4102 L3 Comma separated lists
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3token.sty
Package: l3token 2012/08/08 v4069 L3 Experimental token manipulation
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3prop.sty
Package: l3prop 2012/09/03 v4190 L3 Property lists
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3msg.sty
Package: l3msg 2012/08/28 v4147 L3 Messages
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3file.sty
Package: l3file 2012/08/15 v4101 L3 File and I/O operations
\l__ior_stream_int=\count129
\l_iow_line_count_int=\count130
\l__iow_target_count_int=\count131
\l__iow_current_line_int=\count132
\l__iow_current_word_int=\count133
\l__iow_current_indentation_int=\count134
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3skip.sty
Package: l3skip 2012/08/17 v4121 L3 Dimensions and skips
\l_tmpa_dim=\dimen166
\l_tmpb_dim=\dimen167
\g_tmpa_dim=\dimen168
\g_tmpb_dim=\dimen169
\l_tmpa_skip=\skip49
\l_tmpb_skip=\skip50
\g_tmpa_skip=\skip51
\g_tmpb_skip=\skip52
\c_zero_muskip=\muskip10
\c_max_muskip=\muskip11
\l_tmpa_muskip=\muskip12
\l_tmpb_muskip=\muskip13
\g_tmpa_muskip=\muskip14
\g_tmpb_muskip=\muskip15
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3keys.sty
Package: l3keys 2012/07/16 v3991 L3 Experimental key-value interfaces
\g__keyval_level_int=\count135
\l_keys_choice_int=\count136
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3fp.sty
Package: l3fp 2012/08/28 v4151 L3 Floating points
\c__fp_leading_shift_int=\count137
\c__fp_middle_shift_int=\count138
\c__fp_trailing_shift_int=\count139
\c__fp_big_leading_shift_int=\count140
\c__fp_big_middle_shift_int=\count141
\c__fp_big_trailing_shift_int=\count142
\c__fp_Bigg_leading_shift_int=\count143
\c__fp_Bigg_middle_shift_int=\count144
\c__fp_Bigg_trailing_shift_int=\count145
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3box.sty
Package: l3box 2012/07/16 v3991 L3 Experimental boxes
\l_tmpb_box=\box40
\g_tmpa_box=\box41
\g_tmpb_box=\box42
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3coffins.sty
Package: l3coffins 2012/08/14 v4092 L3 Coffin code layer
\l__coffin_internal_box=\box43
\l__coffin_internal_dim=\dimen170
\l__coffin_offset_x_dim=\dimen171
\l__coffin_offset_y_dim=\dimen172
\l__coffin_x_dim=\dimen173
\l__coffin_y_dim=\dimen174
\l__coffin_x_prime_dim=\dimen175
\l__coffin_y_prime_dim=\dimen176
\c_empty_coffin=\box44
\l__coffin_aligned_coffin=\box45
\l__coffin_aligned_internal_coffin=\box46
\l_tmpa_coffin=\box47
\l_tmpb_coffin=\box48
\l__coffin_display_coffin=\box49
\l__coffin_display_coord_coffin=\box50
\l__coffin_display_pole_coffin=\box51
\l__coffin_display_offset_dim=\dimen177
\l__coffin_display_x_dim=\dimen178
\l__coffin_display_y_dim=\dimen179
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3color.sty
Package: l3color 2012/08/29 v4156 L3 Experimental color support
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3luatex.sty
Package: l3luatex 2012/08/03 v4049 L3 Experimental LuaTeX-specific functions
\g__cctab_allocate_int=\count146
\g__cctab_stack_int=\count147
)
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3candidates.sty
Package: l3candidates 2012/05/12 v3633 L3 Experimental additions to l3kernel
\l__box_top_dim=\dimen180
\l__box_bottom_dim=\dimen181
\l__box_left_dim=\dimen182
\l__box_right_dim=\dimen183
\l__box_top_new_dim=\dimen184
\l__box_bottom_new_dim=\dimen185
\l__box_left_new_dim=\dimen186
\l__box_right_new_dim=\dimen187
\l__box_internal_box=\box52
\l__coffin_bounding_shift_dim=\dimen188
\l__coffin_left_corner_dim=\dimen189
\l__coffin_right_corner_dim=\dimen190
\l__coffin_bottom_corner_dim=\dimen191
\l__coffin_top_corner_dim=\dimen192
\l__coffin_scaled_total_height_dim=\dimen193
\l__coffin_scaled_width_dim=\dimen194
))
Package: siunitx 2012/09/18 v2.5j A comprehensive (SI) units package
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amstext.sty"
Package: amstext 2000/06/29 v2.01
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks33
\ex@=\dimen195
))
(C:\Users\U\AppData\Roaming\MiKTeX\2.9\tex\latex\l3packages\l3keys2e\l3keys2
e.sty
LaTeX Warning: You have requested, on input line 49, version
`2012/09/29' of package expl3,
but only version
`2012/09/05 v4205 L3 Experimental code bundle wrapper'
is available.
! Package l3keys2e Error: Support package l3kernel too old..
See the l3keys2e package documentation for explanation.
Type H <return> for immediate help.
...
l.60 }
Please install an up to date version of l3kernel using your TeX package manager
or from CTAN.\\ \\ Loading l3keys2e will abort!
)
Variant \tl_if_blank:VTF already defined; not changing it on line 50
\l__siunitx_tmp_box=\box53
\l__siunitx_tmp_dim=\dimen196
\l__siunitx_tmp_int=\count148
Variant \prop_get:NVNT already defined; not changing it on line 361
Variant \prop_get:NVNF already defined; not changing it on line 362
Variant \prop_get:NVNTF already defined; not changing it on line 363
\l__siunitx_number_mantissa_length_int=\count149
\l__siunitx_number_uncert_length_int=\count150
\l__siunitx_round_int=\count151
\l__siunitx_process_decimal_int=\count152
\l__siunitx_process_uncertainty_int=\count153
\l__siunitx_process_fixed_int=\count154
\l__siunitx_process_integer_min_int=\count155
\l__siunitx_process_precision_int=\count156
\l__siunitx_group_min_int=\count157
\l__siunitx_angle_marker_box=\box54
\l__siunitx_angle_unit_box=\box55
\l__siunitx_angle_marker_dim=\dimen197
\l__siunitx_angle_unit_dim=\dimen198
\l__siunitx_unit_int=\count158
\l__siunitx_unit_denominator_int=\count159
\l__siunitx_unit_numerator_int=\count160
\l__siunitx_unit_prefix_int=\count161
\l__siunitx_unit_prefix_base_int=\count162
\l__siunitx_unit_prefix_gram_int=\count163
\l__siunitx_number_product_int=\count164
\c__siunitx_one_fill_skip=\skip53
\l__siunitx_table_unit_align_skip=\skip54
\l__siunitx_table_exponent_dim=\dimen199
\l__siunitx_table_integer_dim=\dimen200
\l__siunitx_table_mantissa_dim=\dimen201
Normal \dimen register pool exhausted, switching to extended pool.
\l__siunitx_table_marker_dim=\dimen256
\l__siunitx_table_result_dim=\dimen257
\l__siunitx_table_uncert_dim=\dimen258
\l__siunitx_table_fill_pre_dim=\dimen259
\l__siunitx_table_fill_post_dim=\dimen260
\l__siunitx_table_fill_mid_dim=\dimen261
\l__siunitx_table_pre_box=\box56
\l__siunitx_table_post_box=\box57
\l__siunitx_table_mantissa_box=\box58
\l__siunitx_table_result_box=\box59
\l__siunitx_table_number_align_skip=\skip55
\l__siunitx_table_text_align_skip=\skip56
! Undefined control sequence.
l.7062 \NewDocumentCommand
\DeclareBinaryPrefix { m m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7062 \NewDocumentCommand \DeclareBinaryPrefix
{ m m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.7062 ...DocumentCommand \DeclareBinaryPrefix { m
m m } {
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Illegal parameter number in definition of \__siunitx_#_function:w.
<to be read again>
{
l.7063 ...iunitx_declare_prefix:Nnnn #1 {#2} { 2 }
{#3}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \__siunitx_#_function:w.
<to be read again>
2
l.7063 ...iunitx_declare_prefix:Nnnn #1 {#2} { 2 }
{#3}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! You can't use `macro parameter character #' in horizontal mode.
l.7063 ...itx_declare_prefix:Nnnn #1 {#2} { 2 } {#
3}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
l.7065 \NewDocumentCommand
\DeclareSIPostPower { m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7065 \NewDocumentCommand \DeclareSIPostPower
{ m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! You can't use `macro parameter character #' in horizontal mode.
l.7066 \__siunitx_declare_power_after:Nn #1 {#
2}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
l.7068 \NewDocumentCommand
\DeclareSIPrefix { m m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7068 \NewDocumentCommand \DeclareSIPrefix
{ m m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Illegal parameter number in definition of \__siunitx_#_function:w.
<to be read again>
{
l.7069 ...unitx_declare_prefix:Nnnn #1 {#2} { 10 }
{#3}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \__siunitx_#_function:w.
<to be read again>
2
l.7069 ...unitx_declare_prefix:Nnnn #1 {#2} { 10 }
{#3}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! You can't use `macro parameter character #' in horizontal mode.
l.7069 ...tx_declare_prefix:Nnnn #1 {#2} { 10 } {#
3}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
l.7071 \NewDocumentCommand
\DeclareSIPrePower { m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7071 \NewDocumentCommand \DeclareSIPrePower
{ m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! You can't use `macro parameter character #' in horizontal mode.
l.7072 \__siunitx_declare_power_before:Nn #1 {#
2}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
l.7074 \NewDocumentCommand
\DeclareSIQualifier { m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7074 \NewDocumentCommand \DeclareSIQualifier
{ m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! You can't use `macro parameter character #' in horizontal mode.
l.7075 \__siunitx_declare_qualifier:Nn #1 {#
2}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
l.7077 \NewDocumentCommand
\DeclareSIUnit { O { } m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7077 \NewDocumentCommand \DeclareSIUnit
{ O { } m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Illegal parameter number in definition of \__siunitx_#_function:w.
<to be read again>
{
l.7078 \__siunitx_declare_unit:Nnn #2 {#3}
{#1}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! You can't use `macro parameter character #' in horizontal mode.
l.7078 \__siunitx_declare_unit:Nnn #2 {#3} {#
1}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
l.7080 \NewDocumentCommand
\DeclareSIUnitWithOptions { m m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7080 ...ocumentCommand \DeclareSIUnitWithOptions
{ m m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Illegal parameter number in definition of \__siunitx_#_function:w.
<to be read again>
{
l.7081 \__siunitx_declare_unit:Nnn #1 {#2}
{#3}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! You can't use `macro parameter character #' in horizontal mode.
l.7081 \__siunitx_declare_unit:Nnn #1 {#2} {#
3}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
l.7091 \NewDocumentCommand
\ang { o > { \SplitArgument { 2 } { ; } } m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7091 \NewDocumentCommand \ang
{ o > { \SplitArgument { 2 } { ; } } m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7091 ...umentCommand \ang { o > { \SplitArgument
{ 2 } { ; } } m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7093 \IfNoValueF
{#1}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! You can't use `macro parameter character #' in horizontal mode.
l.7093 \IfNoValueF {#
1}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! siunitx error: "unknown-option"
!
! Unknown option '##1'.
!
! See the siunitx documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.7094 { \keys_set:nn { siunitx } {#1}
}
|'''''''''''''''''''''''''''''''''''''''''''''''
| The option file '##1' is not known by siunitx:perhaps it is spelled
| incorrectly.
|...............................................
! Undefined control sequence.
\__siunitx_angle_output:nnn ...init: \IfNoValueTF
{#2}{\bool_set_false:N \l_...
l.7096 \group_end:
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Illegal parameter number in definition of \l__exp_internal_tl.
<to be read again>
}
l.7096 \group_end:
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 7096.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 7096.
! You can't use `macro parameter character #' in math mode.
<argument> ##
l.7096 \group_end:
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! You can't use `macro parameter character #' in math mode.
\l__siunitx_print_arg_tl ->\ensuremath {##}##
l.7096 \group_end:
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
\__siunitx_angle_output:nnn ...{}{}}{\IfNoValueTF
{#3}{\__siunitx_error:nx {...
l.7096 \group_end:
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing } inserted.
<inserted text>
}
l.7096 \group_end:
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Missing } inserted.
<inserted text>
}
l.7096 \group_end:
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Illegal parameter number in definition of \l__exp_internal_tl.
<to be read again>
;
l.7096 \group_end:
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! siunitx error: "invalid-arc-format"
!
! Invalid degree-minute-secondangle '##;2'.
!
! See the siunitx documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.7096 \group_end:
|'''''''''''''''''''''''''''''''''''''''''''''''
| Angles given in degree-minute-second format should contain two ';'symbols to
| divide up the parts of the input.
|...............................................
! Illegal parameter number in definition of \l__exp_internal_tl.
<to be read again>
}
l.7096 \group_end:
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! siunitx error: "invalid-number"
!
! Invalid numerical input '\group_end: '.
!
! See the siunitx documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.7096 \group_end:
|'''''''''''''''''''''''''''''''''''''''''''''''
| The inputgiven as a number does not make logical sense. This happens,
| forexample, if a number only contains a sign.
|...............................................
! You can't use `macro parameter character #' in math mode.
<argument> ##
l.7096 \group_end:
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! You can't use `macro parameter character #' in math mode.
\l__siunitx_print_arg_tl ->\ensuremath {##}##
l.7096 \group_end:
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Too many }'s.
\__siunitx_angle_output:nnn ...:nnn {#1}{#2}{#3}}}
l.7096 \group_end:
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.
! Too many }'s.
l.7097 }
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.
! Undefined control sequence.
l.7098 \NewDocumentCommand
\num { o m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7098 \NewDocumentCommand \num
{ o m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7101 \IfNoValueF
{#1}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! You can't use `macro parameter character #' in horizontal mode.
l.7101 \IfNoValueF {#
1}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! siunitx error: "unknown-option"
!
! Unknown option '##1'.
!
! See the siunitx documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.7102 { \keys_set:nn { siunitx } {#1}
}
|'''''''''''''''''''''''''''''''''''''''''''''''
| The option file '##1' is not known by siunitx:perhaps it is spelled
| incorrectly.
|...............................................
! Illegal parameter number in definition of \l__exp_internal_tl.
<to be read again>
2
l.7103 \__siunitx_number_output:n {#2}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! You can't use `macro parameter character #' in math mode.
<argument> ##
l.7103 \__siunitx_number_output:n {#2}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! You can't use `macro parameter character #' in math mode.
\l__siunitx_print_arg_tl ->\ensuremath {##}##
2
l.7103 \__siunitx_number_output:n {#2}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
l.7106 \NewDocumentCommand
\numlist { o > { \SplitList { ; } } m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7106 \NewDocumentCommand \numlist
{ o > { \SplitList { ; } } m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7106 ...umentCommand \numlist { o > { \SplitList
{ ; } } m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7109 \IfNoValueF
{#1}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! You can't use `macro parameter character #' in horizontal mode.
l.7109 \IfNoValueF {#
1}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! siunitx error: "unknown-option"
!
! Unknown option '##1'.
!
! See the siunitx documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.7110 { \keys_set:nn { siunitx } {#1}
}
|'''''''''''''''''''''''''''''''''''''''''''''''
| The option file '##1' is not known by siunitx:perhaps it is spelled
| incorrectly.
|...............................................
! Illegal parameter number in definition of \l__exp_internal_tl.
<to be read again>
}
l.7111 \__siunitx_list_numbers:n {#2}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! You can't use `macro parameter character #' in math mode.
<argument> ##
l.7111 \__siunitx_list_numbers:n {#2}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! You can't use `macro parameter character #' in math mode.
\l__siunitx_print_arg_tl ->\ensuremath {##}##
l.7111 \__siunitx_list_numbers:n {#2}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
l.7114 \NewDocumentCommand
\numrange { o m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7114 \NewDocumentCommand \numrange
{ o m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7117 \IfNoValueF
{#1}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! You can't use `macro parameter character #' in horizontal mode.
l.7117 \IfNoValueF {#
1}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! siunitx error: "unknown-option"
!
! Unknown option '##1'.
!
! See the siunitx documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.7118 { \keys_set:nn { siunitx } {#1}
}
|'''''''''''''''''''''''''''''''''''''''''''''''
| The option file '##1' is not known by siunitx:perhaps it is spelled
| incorrectly.
|...............................................
! Illegal parameter number in definition of \l__exp_internal_tl.
<to be read again>
2
l.7119 \__siunitx_range_numbers:nn {#2} {#3}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! You can't use `macro parameter character #' in math mode.
<argument> ##
l.7119 \__siunitx_range_numbers:nn {#2} {#3}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! You can't use `macro parameter character #' in math mode.
\l__siunitx_print_arg_tl ->\ensuremath {##}##
2
l.7119 \__siunitx_range_numbers:nn {#2} {#3}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Illegal parameter number in definition of \l__exp_internal_tl.
<to be read again>
3
l.7119 \__siunitx_range_numbers:nn {#2} {#3}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! You can't use `macro parameter character #' in math mode.
<argument> ##
l.7119 \__siunitx_range_numbers:nn {#2} {#3}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! You can't use `macro parameter character #' in math mode.
\l__siunitx_print_arg_tl ->\ensuremath {##}##
3
l.7119 \__siunitx_range_numbers:nn {#2} {#3}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Undefined control sequence.
l.7122 \NewDocumentCommand
\SIlist { o > { \SplitList { ; } } m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7122 \NewDocumentCommand \SIlist
{ o > { \SplitList { ; } } m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7122 ...cumentCommand \SIlist { o > { \SplitList
{ ; } } m m } {
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.7125 \IfNoValueTF
{#1}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! You can't use `macro parameter character #' in horizontal mode.
l.7125 \IfNoValueTF {#
1}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! Illegal parameter number in definition of \l__siunitx_tmpa_tl.
<to be read again>
3
l.7126 ... \__siunitx_list_units:nnn {#2} {#3} { }
}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \l__exp_internal_tl.
<to be read again>
}
l.7126 ... \__siunitx_list_units:nnn {#2} {#3} { }
}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! You can't use `macro parameter character #' in math mode.
<argument> ##
l.7126 ... \__siunitx_list_units:nnn {#2} {#3} { }
}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! You can't use `macro parameter character #' in math mode.
\l__siunitx_print_arg_tl ->\ensuremath {##}##
l.7126 ... \__siunitx_list_units:nnn {#2} {#3} { }
}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! You can't use `macro parameter character #' in restricted horizontal mode.
\l__siunitx_print_arg_tl ->##
3
l.7126 ... \__siunitx_list_units:nnn {#2} {#3} { }
}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! You can't use `macro parameter character #' in restricted horizontal mode.
\l__siunitx_print_arg_tl ->##
3
l.7126 ... \__siunitx_list_units:nnn {#2} {#3} { }
}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! siunitx error: "unknown-option"
!
! Unknown option '##1'.
!
! See the siunitx documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.7128 \keys_set:nn { siunitx } {#1}
|'''''''''''''''''''''''''''''''''''''''''''''''
| The option file '##1' is not known by siunitx:perhaps it is spelled
| incorrectly.
|...............................................
! Illegal parameter number in definition of \l__siunitx_tmpa_tl.
<to be read again>
3
l.7129 ...\__siunitx_list_units:nnn {#2} {#3} {#1}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \l__exp_internal_tl.
<to be read again>
}
l.7129 ...\__siunitx_list_units:nnn {#2} {#3} {#1}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! You can't use `macro parameter character #' in math mode.
<argument> ##
l.7129 ...\__siunitx_list_units:nnn {#2} {#3} {#1}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! You can't use `macro parameter character #' in math mode.
\l__siunitx_print_arg_tl ->\ensuremath {##}##
l.7129 ...\__siunitx_list_units:nnn {#2} {#3} {#1}
(That makes 100 errors; please try again.)
Here is how much of TeX's memory you used:
22623 strings out of 494045
550278 string characters out of 3145972
561293 words of memory out of 3000000
25564 multiletter control sequences out of 15000+200000
3640 words of font info for 14 fonts, out of 3000000 for 9000
715 hyphenation exceptions out of 8191
63i,3n,74p,662b,609s stack positions out of 5000i,500n,10000p,200000b,50000s
! ==> Fatal error occurred, no output PDF file produced!
Any idea of how to repair that? I've been installing packages (like Siunitx), files...
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Arrays & functions

Post by cgnieder »

Probably your TeX distribution is outdated. The newest version of pgfplots is 1.7 (and was 1.6 by the time of my last answer). The compat option should ensure the compatibility with the specified version is given. You can just leave it out and see what happens. It might be a good thing to update your distribution nonetheless.

Regards
site moderator & package author
Post Reply