diff --git a/README.md b/README.md index a17b7ca..6084719 100644 --- a/README.md +++ b/README.md @@ -319,6 +319,19 @@ if you are not setting additional options, use `"value":true`. ### Document Tags +To change the **language** of the document: + +```json +{ +"ipub": { + "language" : "french" + } +} +``` + +where the language can be any specified in the +[babel](https://people.phys.ethz.ch/~ihn/latex/babel.pdf) package. + To specify where the **bibliography** is: ```json diff --git a/converted/Example.html b/converted/Example.html index 549d24a..dcac2a2 100644 --- a/converted/Example.html +++ b/converted/Example.html @@ -11891,14 +11891,14 @@
-
+

Main-Title

Sub-Title

by Authors Name
-

Markdown

+

Markdown¶

@@ -11910,7 +11910,7 @@

Markdown

-

General

+

General¶

@@ -11965,7 +11965,7 @@

General

-

References and Citations

+

References and Citations¶

@@ -11977,7 +11977,7 @@

References and Citations
-

References to fig. 1, tbl. 1, eqn. 1 and code 1.

+

References to fig. 1, tbl. 1, eqn. 1 and code 6.

Referencing multiple items: fig. 1, fig. 2 and fig. 3.

A latex citation.[Zelenyak et al, 2016.]

A html citation.(Kirkeminde, 2012)

@@ -11992,7 +11992,7 @@

References and Citations
-

Todo notes

+

Todo notes¶

@@ -12016,7 +12016,7 @@

Todo notes
-

Text Output

+

Text Output¶

@@ -12040,7 +12040,7 @@

Text Output
-

Images and Figures

+

Images and Figures¶

@@ -20435,14 +20435,14 @@

Images and Figures
-

Displaying a plot with its code

+

Displaying a plot with its code¶

-
Code 1: The plotting code for a matplotlib figure (fig. 5). +
Code 6: The plotting code for a matplotlib figure (fig. 5).
@@ -21255,14 +21255,14 @@

Displaying a plot with its code
-

Tables (with pandas)

+

Tables (with pandas)¶

-
Code 2: The plotting code for a pandas Dataframe table (tbl. 1). +
Code 8: The plotting code for a pandas Dataframe table (tbl. 1).
@@ -21359,7 +21359,7 @@

Tables (with pandas)
-

Equations (with ipython or sympy)

+

Equations (with ipython or sympy)¶

@@ -21378,7 +21378,7 @@

Equations (with ipython or sympy) -
Code 3: The plotting code for a sympy equation (
eqn. 1). +
Code 11: The plotting code for a sympy equation (eqn. 1).
@@ -21416,7 +21416,7 @@

Equations (with ipython or sympy)
-

Embed interactive HTML (like ipywidgets)

+

Embed interactive HTML (like ipywidgets)¶

@@ -21440,27 +21440,7 @@

Embed interactive HTML (like i
- - - - - ipyvolume embed example - - - - - - - - - - +
diff --git a/converted/Example.pdf b/converted/Example.pdf index 92bdc37..87b441c 100644 Binary files a/converted/Example.pdf and b/converted/Example.pdf differ diff --git a/converted/Example.slides.html b/converted/Example.slides.html index c406ad8..7873ceb 100644 --- a/converted/Example.slides.html +++ b/converted/Example.slides.html @@ -11860,7 +11860,7 @@
-
+

Main-Title

Sub-Title

by Authors Name
@@ -11952,7 +11952,7 @@

1.2. References and Citations
-

References to fig. 1, tbl. 1, eqn. 1 and code 1.

+

References to fig. 1, tbl. 1, eqn. 1 and code 6.

Referencing multiple items: fig. 1, fig. 2 and fig. 3.

A latex citation.[Zelenyak et al, 2016.]

A html citation.(Kirkeminde, 2012)

@@ -20441,7 +20441,7 @@

3.1. Displaying a plot with its co

-
Code 1: The plotting code for a matplotlib figure (fig. 5). +
Code 6: The plotting code for a matplotlib figure (fig. 5).
@@ -21267,7 +21267,7 @@

4. Tables (with pandas)

-
Code 2: The plotting code for a pandas Dataframe table (
tbl. 1). +
Code 8: The plotting code for a pandas Dataframe table (tbl. 1).
@@ -21389,7 +21389,7 @@

5. Equations (with ipython or symp

-
Code 3: The plotting code for a sympy equation (eqn. 1). +
Code 11: The plotting code for a sympy equation (eqn. 1).
@@ -21457,27 +21457,7 @@

6. Embed interactive HTML (
- - - - - ipyvolume embed example - - - - - - - - - - +
diff --git a/converted/Example.tex b/converted/Example.tex index fc58f00..f19f1a8 100644 --- a/converted/Example.tex +++ b/converted/Example.tex @@ -4,11 +4,15 @@ toc=sectionentrywithdots, bibliography=totocnumbered, captions=tableheading,numbers=noendperiod]{scrartcl} +%\usepackage{polyglossia} +%\setmainlanguage{british} +%\DeclareTextCommandDefault{\nobreakspace}{\leavevmode\nobreak\ } +\usepackage[british]{babel} \usepackage[T1]{fontenc} % Nicer default font (+ math font) than Computer Modern for most use cases \usepackage{mathpazo} \usepackage{graphicx} - \usepackage{caption} + \usepackage[skip=3pt]{caption} \usepackage{adjustbox} % Used to constrain images to a maximum size \usepackage[table]{xcolor} % Allow colors to be defined \usepackage{enumerate} % Needed for markdown enumerations to work @@ -36,6 +40,7 @@ \usepackage[normalem]{ulem} % ulem is needed to support strikethroughs (\sout) % normalem makes italics be italics, not underlines + \usepackage{translations} \usepackage{microtype} % improves the spacing between words and letters \usepackage{placeins} % placement of figures % could use \usepackage[section]{placeins} but placing in subsection in command section @@ -80,73 +85,73 @@ \PY@it{\PY@bf{\PY@ff{#1}}}}}}} \def\PY#1#2{\PY@reset\PY@toks#1+\relax+\PY@do{#2}} -\expandafter\def\csname PY@tok@w\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}} -\expandafter\def\csname PY@tok@c\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} +\expandafter\def\csname PY@tok@gd\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}} +\expandafter\def\csname PY@tok@gu\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}} +\expandafter\def\csname PY@tok@gt\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}} +\expandafter\def\csname PY@tok@gs\endcsname{\let\PY@bf=\textbf} +\expandafter\def\csname PY@tok@gr\endcsname{\def\PY@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}} +\expandafter\def\csname PY@tok@cm\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} +\expandafter\def\csname PY@tok@vg\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} +\expandafter\def\csname PY@tok@vi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} +\expandafter\def\csname PY@tok@vm\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} +\expandafter\def\csname PY@tok@mh\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} +\expandafter\def\csname PY@tok@cs\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} +\expandafter\def\csname PY@tok@ge\endcsname{\let\PY@it=\textit} +\expandafter\def\csname PY@tok@vc\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} +\expandafter\def\csname PY@tok@il\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} +\expandafter\def\csname PY@tok@go\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}} \expandafter\def\csname PY@tok@cp\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.74,0.48,0.00}{##1}}} -\expandafter\def\csname PY@tok@k\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} -\expandafter\def\csname PY@tok@kp\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} -\expandafter\def\csname PY@tok@kt\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}} -\expandafter\def\csname PY@tok@o\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} -\expandafter\def\csname PY@tok@ow\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} -\expandafter\def\csname PY@tok@nb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} -\expandafter\def\csname PY@tok@nf\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} -\expandafter\def\csname PY@tok@nc\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} +\expandafter\def\csname PY@tok@gi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}} +\expandafter\def\csname PY@tok@gh\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}} +\expandafter\def\csname PY@tok@ni\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}} +\expandafter\def\csname PY@tok@nl\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}} \expandafter\def\csname PY@tok@nn\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} -\expandafter\def\csname PY@tok@ne\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}} -\expandafter\def\csname PY@tok@nv\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} \expandafter\def\csname PY@tok@no\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}} -\expandafter\def\csname PY@tok@nl\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}} -\expandafter\def\csname PY@tok@ni\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}} \expandafter\def\csname PY@tok@na\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.49,0.56,0.16}{##1}}} -\expandafter\def\csname PY@tok@nt\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@nb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@nc\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} \expandafter\def\csname PY@tok@nd\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} -\expandafter\def\csname PY@tok@s\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} -\expandafter\def\csname PY@tok@sd\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} +\expandafter\def\csname PY@tok@ne\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}} +\expandafter\def\csname PY@tok@nf\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} \expandafter\def\csname PY@tok@si\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}} -\expandafter\def\csname PY@tok@se\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}} -\expandafter\def\csname PY@tok@sr\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}} -\expandafter\def\csname PY@tok@ss\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} -\expandafter\def\csname PY@tok@sx\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@s2\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} +\expandafter\def\csname PY@tok@nt\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@nv\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} +\expandafter\def\csname PY@tok@s1\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} +\expandafter\def\csname PY@tok@dl\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} +\expandafter\def\csname PY@tok@ch\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} \expandafter\def\csname PY@tok@m\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} -\expandafter\def\csname PY@tok@gh\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}} -\expandafter\def\csname PY@tok@gu\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}} -\expandafter\def\csname PY@tok@gd\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}} -\expandafter\def\csname PY@tok@gi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}} -\expandafter\def\csname PY@tok@gr\endcsname{\def\PY@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}} -\expandafter\def\csname PY@tok@ge\endcsname{\let\PY@it=\textit} -\expandafter\def\csname PY@tok@gs\endcsname{\let\PY@bf=\textbf} \expandafter\def\csname PY@tok@gp\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}} -\expandafter\def\csname PY@tok@go\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}} -\expandafter\def\csname PY@tok@gt\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}} -\expandafter\def\csname PY@tok@err\endcsname{\def\PY@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}} -\expandafter\def\csname PY@tok@kc\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} -\expandafter\def\csname PY@tok@kd\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} -\expandafter\def\csname PY@tok@kn\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} -\expandafter\def\csname PY@tok@kr\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@sh\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} +\expandafter\def\csname PY@tok@ow\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} +\expandafter\def\csname PY@tok@sx\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} \expandafter\def\csname PY@tok@bp\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@c1\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} \expandafter\def\csname PY@tok@fm\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} -\expandafter\def\csname PY@tok@vc\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} -\expandafter\def\csname PY@tok@vg\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} -\expandafter\def\csname PY@tok@vi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} -\expandafter\def\csname PY@tok@vm\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} -\expandafter\def\csname PY@tok@sa\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} -\expandafter\def\csname PY@tok@sb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} -\expandafter\def\csname PY@tok@sc\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} -\expandafter\def\csname PY@tok@dl\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} -\expandafter\def\csname PY@tok@s2\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} -\expandafter\def\csname PY@tok@sh\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} -\expandafter\def\csname PY@tok@s1\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} -\expandafter\def\csname PY@tok@mb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} +\expandafter\def\csname PY@tok@o\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} +\expandafter\def\csname PY@tok@kc\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@c\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} \expandafter\def\csname PY@tok@mf\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} -\expandafter\def\csname PY@tok@mh\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} -\expandafter\def\csname PY@tok@mi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} -\expandafter\def\csname PY@tok@il\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} +\expandafter\def\csname PY@tok@err\endcsname{\def\PY@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}} +\expandafter\def\csname PY@tok@mb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} +\expandafter\def\csname PY@tok@ss\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} +\expandafter\def\csname PY@tok@sr\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}} \expandafter\def\csname PY@tok@mo\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} -\expandafter\def\csname PY@tok@ch\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} -\expandafter\def\csname PY@tok@cm\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} +\expandafter\def\csname PY@tok@kd\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@mi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} +\expandafter\def\csname PY@tok@kn\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} \expandafter\def\csname PY@tok@cpf\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} -\expandafter\def\csname PY@tok@c1\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} -\expandafter\def\csname PY@tok@cs\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} +\expandafter\def\csname PY@tok@kr\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@s\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} +\expandafter\def\csname PY@tok@kp\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@w\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}} +\expandafter\def\csname PY@tok@kt\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}} +\expandafter\def\csname PY@tok@sc\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} +\expandafter\def\csname PY@tok@sb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} +\expandafter\def\csname PY@tok@sa\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} +\expandafter\def\csname PY@tok@k\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} +\expandafter\def\csname PY@tok@se\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}} +\expandafter\def\csname PY@tok@sd\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} \def\PYZbs{\char`\\} \def\PYZus{\char`\_} @@ -241,6 +246,29 @@ \definecolor{linkcolor}{rgb}{.71,0.21,0.01} \definecolor{citecolor}{rgb}{.12,.54,.11} +\DeclareTranslationFallback{Author}{Author} +\DeclareTranslation{Portuges}{Author}{Autor} + +\DeclareTranslationFallback{List of Codes}{List of Codes} +\DeclareTranslation{Catalan}{List of Codes}{Llista de Codis} +\DeclareTranslation{Danish}{List of Codes}{Liste over Koder} +\DeclareTranslation{German}{List of Codes}{Liste der Codes} +\DeclareTranslation{Spanish}{List of Codes}{Lista de C\'{o}digos} +\DeclareTranslation{French}{List of Codes}{Liste des Codes} +\DeclareTranslation{Italian}{List of Codes}{Elenco dei Codici} +\DeclareTranslation{Dutch}{List of Codes}{Lijst van Codes} +\DeclareTranslation{Portuges}{List of Codes}{Lista de C\'{o}digos} + +\DeclareTranslationFallback{Supervisors}{Supervisors} +\DeclareTranslation{Catalan}{Supervisors}{Supervisors} +\DeclareTranslation{Danish}{Supervisors}{Vejledere} +\DeclareTranslation{German}{Supervisors}{Vorgesetzten} +\DeclareTranslation{Spanish}{Supervisors}{Supervisores} +\DeclareTranslation{French}{Supervisors}{Superviseurs} +\DeclareTranslation{Italian}{Supervisors}{Le autorit\`{a} di vigilanza} +\DeclareTranslation{Dutch}{Supervisors}{supervisors} +\DeclareTranslation{Portuguese}{Supervisors}{Supervisores} + \definecolor{codegreen}{rgb}{0,0.6,0} \definecolor{codegray}{rgb}{0.5,0.5,0.5} \definecolor{codepurple}{rgb}{0.58,0,0.82} @@ -380,12 +408,12 @@ \begin{center} \begin{minipage}{0.39\textwidth} \begin{flushleft} \Large - \emph{Author:}\\Authors Name\\\href{mailto:authors@email.com}{authors@email.com} + \emph{\GetTranslation{Author}:}\\Authors Name\\\href{mailto:authors@email.com}{authors@email.com} \end{flushleft} \end{minipage} \hspace{\fill} \begin{minipage}{0.39\textwidth} - \begin{flushright} \Large\emph{Supervisors:} \\ + \begin{flushright} \Large\emph{\GetTranslation{Supervisors}:} \\ First Supervisor Second Supervisor \end{flushright} @@ -413,7 +441,7 @@ \begingroup \let\cleardoublepage\relax - \let\clearpage\relax\tableofcontents\listoffigures\listoftables\listof{codecell}{List of Code} + \let\clearpage\relax\tableofcontents\listoffigures\listoftables\listof{codecell}{\GetTranslation{List of Codes}} \endgroup \section{Markdown}\label{markdown} @@ -477,20 +505,16 @@ \section{Text Output}\label{text-output} \section{Images and Figures}\label{images-and-figures} - \begin{figure}[!bh] - \begin{center}\adjustimage{max size={0.9\linewidth}{0.4\paperheight}}{Example_files/output_13_0.jpeg}\end{center}\caption{A nice picture.}\label{fig:example} + \begin{figure}[!bh]\begin{center}\adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{Example_files/output_13_0.jpeg}\end{center}\caption{A nice picture.}\label{fig:example} \end{figure} - \begin{figure} - \begin{center}\adjustimage{max size={0.9\linewidth}{0.4\paperheight}}{Example_files/output_14_0.png}\end{center}\caption{Horizontally aligned images.}\label{fig:example_h} + \begin{figure}\begin{center}\adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{Example_files/output_14_0.png}\end{center}\caption{Horizontally aligned images.}\label{fig:example_h} \end{figure} - \begin{figure} - \begin{center}\adjustimage{max size={0.9\linewidth}{0.4\paperheight}}{Example_files/output_15_0.png}\end{center}\caption{Vertically aligned images.}\label{fig:example_v} + \begin{figure}\begin{center}\adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{Example_files/output_15_0.png}\end{center}\caption{Vertically aligned images.}\label{fig:example_v} \end{figure} - \begin{figure} - \begin{center}\adjustimage{max size={0.9\linewidth}{0.4\paperheight}}{Example_files/output_16_0.png}\end{center}\caption{Images aligned in a grid.}\label{fig:example_grid} + \begin{figure}\begin{center}\adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{Example_files/output_16_0.png}\end{center}\caption{Images aligned in a grid.}\label{fig:example_grid} \end{figure} \subsection{Displaying a plot with its @@ -505,8 +529,7 @@ \subsection{Displaying a plot with its plt.legend(); \end{lstlisting}\end{codecell} -\begin{figure} - \begin{center}\adjustimage{max size={0.9\linewidth}{0.4\paperheight}}{Example_files/output_20_0.pdf}\end{center}\caption{A matplotlib figure, with the caption set in the markdowncell above the figure.}\label{fig:example_mpl} +\begin{figure}\begin{center}\adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{Example_files/output_20_0.pdf}\end{center}\caption{A matplotlib figure, with the caption set in the markdowncell above the figure.}\label{fig:example_mpl} \end{figure} \section{Tables (with pandas)}\label{tables-with-pandas} @@ -523,7 +546,8 @@ \section{Tables (with pandas)}\label{tables-with-pandas} \begin{table}[H]\caption{An example of a table created with pandas dataframe.}\label{tbl:example} - \centering\rowcolors{2}{gray!20}{white} + \centering + \begin{adjustbox}{max width=\textwidth}\rowcolors{2}{gray!20}{white} \begin{tabular}{lllrr} \toprule {} & a & b & c & d \\ @@ -534,6 +558,7 @@ \section{Tables (with pandas)}\label{tables-with-pandas} \bottomrule \end{tabular} + \end{adjustbox} \end{table} \section{Equations (with ipython or diff --git a/converted/Example_files/embed.html b/converted/Example_files/embed.html new file mode 100644 index 0000000..b82195d --- /dev/null +++ b/converted/Example_files/embed.html @@ -0,0 +1,23 @@ + + + + + ipyvolume embed example + + + + + + + + + + + + diff --git a/converted/Example_files/output_13_0.jpeg b/converted/Example_files/output_13_0.jpeg deleted file mode 100644 index 1c1e83e..0000000 Binary files a/converted/Example_files/output_13_0.jpeg and /dev/null differ diff --git a/converted/Example_files/output_14_0.png b/converted/Example_files/output_14_0.png deleted file mode 100644 index 330ff20..0000000 Binary files a/converted/Example_files/output_14_0.png and /dev/null differ diff --git a/converted/Example_files/output_15_0.png b/converted/Example_files/output_15_0.png deleted file mode 100644 index 9a72d48..0000000 Binary files a/converted/Example_files/output_15_0.png and /dev/null differ diff --git a/converted/Example_files/output_16_0.png b/converted/Example_files/output_16_0.png deleted file mode 100644 index caf35b3..0000000 Binary files a/converted/Example_files/output_16_0.png and /dev/null differ diff --git a/converted/Example_files/output_20_0.pdf b/converted/Example_files/output_20_0.pdf deleted file mode 100644 index fffc423..0000000 Binary files a/converted/Example_files/output_20_0.pdf and /dev/null differ diff --git a/converted/MultiOutput_Test.pdf b/converted/MultiOutput_Test.pdf new file mode 100644 index 0000000..4d0ccdf Binary files /dev/null and b/converted/MultiOutput_Test.pdf differ diff --git a/ipypublish/__init__.py b/ipypublish/__init__.py index 8411e55..aece342 100644 --- a/ipypublish/__init__.py +++ b/ipypublish/__init__.py @@ -1 +1 @@ -__version__ = '0.6.1' +__version__ = '0.6.2'