SlideShare une entreprise Scribd logo
1  sur  8
Télécharger pour lire hors ligne
TexVar
Mathematical calculations in LATEX made easy
TexVar
TexVar (short tVar) is a basic LaTeX math calculations tool written in
Lua. For integration into LaTeX, it has to be used together with
LuaLaTeX. Compared to software like Mathcad TexVar is a lot more
flexible. You can fill custom designed tables with results, do calculations
within text documents and print beautiful LaTeX equations. The current
version also supports 2D-plotting with gnuplot.
Let’s take a look at an example ...
Assume you have to calculate the maximum critical load for a collumn,
with both ends fixed (Euler buckling case 2).
You can just write this:
begin{tVar}
{
E:=21000:setUnit("kN/cm^2")
I:=8360:setUnit("cm^4")
L:=400:setUnit("cm")
}
F_crit:=(tVar.PI^2/(4*L^2)*E*I):setUnit("kN"):CRLF("=")
end{tVar}
And TexVar returns you this:
E = 21000 kN/cm2
I = 8360 cm4
L = 400 cm
Fcrit =
π2
4 · L2
· E · I =
π2
4 · 4002 · 21000 · 8360 =
= 2707.356 kN
Now we want to calculate the load for a collumn with only half the
length.
To compare the results we store the previous one in another variable and
print both results in a text.
begin{tVar}
{
F_crit_1:=F_crit
L_2:=(L/2):setUnit("cm")
}
F_crit:=(tVar.PI^2/(4*L_2^2)*E*I):setUnit("kN"):CRLF("=")
# Critical load: full length $$F_crit_1$$, half length $$F
_crit$$.
end{tVar}
And TexVar returns you this:
Fcrit,1 = Fcrit = 2707.356 kN
L2 =
L
2
=
400
2
= 200 cm
Fcrit =
π2
4 · L2
2 · E · I =
π2
4 · 2002 · 21000 · 8360 =
= 10829.423 kN
Critical load: full length 2707.356 kN, half length 10829.423 kN.
TexVar offers: all LATEX formatting options, 2D plots with gnuplot and a
very simple syntax.
Details on commands can be found in the manual.
http://texvar.projectzoo.at
TexVar offers:
• all LATEX formatting options
• 2D plots with gnuplot
• matrix and vector calculations
• a very simple syntax
... and is fully extensible with any lua function.
Download the current version today from:
http://texvar.projectzoo.at

Contenu connexe

En vedette

Ejercicios unidad 9
Ejercicios unidad 9Ejercicios unidad 9
Ejercicios unidad 9
Ivan Leon
 
Ibps sbi po computer awareness mega question bank of 1500 questions
Ibps sbi po computer awareness mega question bank of 1500 questionsIbps sbi po computer awareness mega question bank of 1500 questions
Ibps sbi po computer awareness mega question bank of 1500 questions
Sumit Ranjan
 
GastronomíA Mexicana
GastronomíA MexicanaGastronomíA Mexicana
GastronomíA Mexicana
Grawe
 

En vedette (15)

Cnci certificate courses 2-2010
Cnci certificate courses 2-2010Cnci certificate courses 2-2010
Cnci certificate courses 2-2010
 
Ejercicios unidad 9
Ejercicios unidad 9Ejercicios unidad 9
Ejercicios unidad 9
 
Lara's song
Lara's songLara's song
Lara's song
 
EsBrand 2012 - TOP 100 Spanish Brands
EsBrand 2012 - TOP 100 Spanish BrandsEsBrand 2012 - TOP 100 Spanish Brands
EsBrand 2012 - TOP 100 Spanish Brands
 
anatomia de los organos de los sentidos
anatomia de los organos de los sentidosanatomia de los organos de los sentidos
anatomia de los organos de los sentidos
 
Nokia New Asha Platform Developer Training
Nokia New Asha Platform Developer TrainingNokia New Asha Platform Developer Training
Nokia New Asha Platform Developer Training
 
Presentación Noosfera
Presentación NoosferaPresentación Noosfera
Presentación Noosfera
 
Incisiones corneales penetrantes en cirugía de cataratas
Incisiones corneales penetrantes en cirugía de cataratasIncisiones corneales penetrantes en cirugía de cataratas
Incisiones corneales penetrantes en cirugía de cataratas
 
Ibps sbi po computer awareness mega question bank of 1500 questions
Ibps sbi po computer awareness mega question bank of 1500 questionsIbps sbi po computer awareness mega question bank of 1500 questions
Ibps sbi po computer awareness mega question bank of 1500 questions
 
Animales carnívoros
Animales carnívorosAnimales carnívoros
Animales carnívoros
 
Pié ortopédico
Pié ortopédicoPié ortopédico
Pié ortopédico
 
Que es la prehistoria
Que es la prehistoriaQue es la prehistoria
Que es la prehistoria
 
Sharing economy: Bright and Dark [2015 GIS Slides Competition]
Sharing economy: Bright and Dark [2015 GIS Slides Competition]Sharing economy: Bright and Dark [2015 GIS Slides Competition]
Sharing economy: Bright and Dark [2015 GIS Slides Competition]
 
GastronomíA Mexicana
GastronomíA MexicanaGastronomíA Mexicana
GastronomíA Mexicana
 
Compotas
CompotasCompotas
Compotas
 

Dernier

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 

Dernier (20)

Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 

TexVar - Mathematical Calculations in LaTeX made easy

  • 2. TexVar TexVar (short tVar) is a basic LaTeX math calculations tool written in Lua. For integration into LaTeX, it has to be used together with LuaLaTeX. Compared to software like Mathcad TexVar is a lot more flexible. You can fill custom designed tables with results, do calculations within text documents and print beautiful LaTeX equations. The current version also supports 2D-plotting with gnuplot. Let’s take a look at an example ...
  • 3. Assume you have to calculate the maximum critical load for a collumn, with both ends fixed (Euler buckling case 2). You can just write this: begin{tVar} { E:=21000:setUnit("kN/cm^2") I:=8360:setUnit("cm^4") L:=400:setUnit("cm") } F_crit:=(tVar.PI^2/(4*L^2)*E*I):setUnit("kN"):CRLF("=") end{tVar}
  • 4. And TexVar returns you this: E = 21000 kN/cm2 I = 8360 cm4 L = 400 cm Fcrit = π2 4 · L2 · E · I = π2 4 · 4002 · 21000 · 8360 = = 2707.356 kN
  • 5. Now we want to calculate the load for a collumn with only half the length. To compare the results we store the previous one in another variable and print both results in a text. begin{tVar} { F_crit_1:=F_crit L_2:=(L/2):setUnit("cm") } F_crit:=(tVar.PI^2/(4*L_2^2)*E*I):setUnit("kN"):CRLF("=") # Critical load: full length $$F_crit_1$$, half length $$F _crit$$. end{tVar}
  • 6. And TexVar returns you this: Fcrit,1 = Fcrit = 2707.356 kN L2 = L 2 = 400 2 = 200 cm Fcrit = π2 4 · L2 2 · E · I = π2 4 · 2002 · 21000 · 8360 = = 10829.423 kN Critical load: full length 2707.356 kN, half length 10829.423 kN.
  • 7. TexVar offers: all LATEX formatting options, 2D plots with gnuplot and a very simple syntax. Details on commands can be found in the manual. http://texvar.projectzoo.at
  • 8. TexVar offers: • all LATEX formatting options • 2D plots with gnuplot • matrix and vector calculations • a very simple syntax ... and is fully extensible with any lua function. Download the current version today from: http://texvar.projectzoo.at