<< Chapter < Page Chapter >> Page >

Rules for converting latex source

Connexions generally does a fine job translating LaTeX source code into the native Connexions mark-up language.However, one may need to adapt one's usual typesetting habits to work around a few idiosyncrasies.Firstly, one should not invest effort in adjusting page margins, line spacing, and fonts: the converter will strip away much ofthis veneer and replace it with the standard Connexions stylings. Equations will not be converted into graphics (as is commonin LaTeX to HTML conversion), but will rather be translated into MathML fonts that can be subsequently edited in Connexions.Do not include a title or abstract in your LaTeX document: these must be entered into Connexions manually when you set up your module.

The Connexions converter will not properly handle several LaTeX commands, as noted in the online help(http://cnx.org/help/UsingLaTeX ).

  • The \mbox command is not supported.
  • Nested tables are not supported.
  • LaTeX allows functions like \sqrt to be followed by asingle argument without brackets, e.g., \sqrt\pi .The Connexions translator misses this syntax; one instead needs to use brackets \sqrt{\pi}.

Future editing

You will likely want to make changes to your file at some point after you have uploaded the LaTeX document into Connexions.Should you edit the LaTeX document, then re-import, or should you alter the code directly in Connexions?If you have major mathematical edits, it may well be easiest to directly alter the LaTeX source. Beware that when you upload, any changes thatyou made to the previous version directly in Connexions will be overwritten. This is not such a concern if you can make all the edits you desiredirectly in LaTeX; however, this is not always the case: some things must be done in Connexions. (For example, see the comments aboutthe verbatim environment in "Incorporating code" below.)

Importing equations

We list a few sample equations to test the ability of the converter. For example, we have the Pythagorean Theorem, a 2 + b 2 = c 2 . This is an example of an inline equation, as is the integral 0 e - x 2 d x . The same integral can also be typeset as a displayed equation,

0 e - x 2 d x .

To typeset a matrix, use the LaTeX array environment:

A = a b c d .

(Note that the TeX \matrix command does not properly translate.)

A sample figure

shows the gap between consecutive prime numbers; see  . Beware: though the original image was drawn in precise vector graphics, theconverter has turned it into a bitmap of substantially diminished quality. Make sure you make your fonts large enough that they remain legible afterthe translation (unlike this figure). The translator also seems to place the figure directly after the reference,so the location of the figure in your Connexions document will generally differ from its placement in your LaTeX document (often for the better).Notice that if you choose the print the Connexions module as a .pdf file, the output will include the bitmapped image, rather than the sharpversion in your original document.

The gap between consecutive prime numbers.

A sample table

provides a list of the first seven Mersenne primes.(Beware: The Converter does not properly handle the caption command for tables. For example,if a caption precedes the table itself, as is the usual custom, the reference does not translate properly.Moreover, Connexions seems to draw boxes around all cells, regardless of the formatting in the LaTeX source.)

Mersenne primes.
k 1 2 3 4 5 6 7
k th Mersenne prime 3 7 31 127 8191 131071 524287

Incorporating code

You might naturally want to include small snippets of code with your report, which you would incorporate in LaTeX using the verbatimenvironment. For example, the following MATLAB commands produce the Mersenne prime datagiven in .

  p=[1:20]';

  pmer = p(isprime(2.^p-1));

  disp([[1:length(pmer)]' 2.^pmer-1])

At present, the Connexions LaTeX translator does not properly handle the verbatimenvironment, though this is expected to improve in an updated translator that will be available in a few months.In the meantime, it is best to leave code out of your LaTeX document, and paste it into Connexions manually as a<code>block.

Adding a bibliography

Connexions works well with LaTeX's bibliography tool, BibTeX. This tool allows you to create a .bibfile that contains a database of papers and books that you regularly reference.For example, this template is accompanied by a file called mybibfile.bibthat contains the three references cited here.You add citations in your LaTeX document using the \citecommand. See Lamport  for details.

Acknowledgements

This Connexions module describes work conducted as part of Rice University's VIGRE program, supported by National Science Foundationgrant DMS–0739420.

Questions & Answers

differentiate between demand and supply giving examples
Lambiv Reply
differentiated between demand and supply using examples
Lambiv
what is labour ?
Lambiv
how will I do?
Venny Reply
how is the graph works?I don't fully understand
Rezat Reply
information
Eliyee
devaluation
Eliyee
t
WARKISA
hi guys good evening to all
Lambiv
multiple choice question
Aster Reply
appreciation
Eliyee
explain perfect market
Lindiwe Reply
In economics, a perfect market refers to a theoretical construct where all participants have perfect information, goods are homogenous, there are no barriers to entry or exit, and prices are determined solely by supply and demand. It's an idealized model used for analysis,
Ezea
What is ceteris paribus?
Shukri Reply
other things being equal
AI-Robot
When MP₁ becomes negative, TP start to decline. Extuples Suppose that the short-run production function of certain cut-flower firm is given by: Q=4KL-0.6K2 - 0.112 • Where is quantity of cut flower produced, I is labour input and K is fixed capital input (K-5). Determine the average product of lab
Kelo
Extuples Suppose that the short-run production function of certain cut-flower firm is given by: Q=4KL-0.6K2 - 0.112 • Where is quantity of cut flower produced, I is labour input and K is fixed capital input (K-5). Determine the average product of labour (APL) and marginal product of labour (MPL)
Kelo
yes,thank you
Shukri
Can I ask you other question?
Shukri
what is monopoly mean?
Habtamu Reply
What is different between quantity demand and demand?
Shukri Reply
Quantity demanded refers to the specific amount of a good or service that consumers are willing and able to purchase at a give price and within a specific time period. Demand, on the other hand, is a broader concept that encompasses the entire relationship between price and quantity demanded
Ezea
ok
Shukri
how do you save a country economic situation when it's falling apart
Lilia Reply
what is the difference between economic growth and development
Fiker Reply
Economic growth as an increase in the production and consumption of goods and services within an economy.but Economic development as a broader concept that encompasses not only economic growth but also social & human well being.
Shukri
production function means
Jabir
What do you think is more important to focus on when considering inequality ?
Abdisa Reply
any question about economics?
Awais Reply
sir...I just want to ask one question... Define the term contract curve? if you are free please help me to find this answer 🙏
Asui
it is a curve that we get after connecting the pareto optimal combinations of two consumers after their mutually beneficial trade offs
Awais
thank you so much 👍 sir
Asui
In economics, the contract curve refers to the set of points in an Edgeworth box diagram where both parties involved in a trade cannot be made better off without making one of them worse off. It represents the Pareto efficient allocations of goods between two individuals or entities, where neither p
Cornelius
In economics, the contract curve refers to the set of points in an Edgeworth box diagram where both parties involved in a trade cannot be made better off without making one of them worse off. It represents the Pareto efficient allocations of goods between two individuals or entities,
Cornelius
Suppose a consumer consuming two commodities X and Y has The following utility function u=X0.4 Y0.6. If the price of the X and Y are 2 and 3 respectively and income Constraint is birr 50. A,Calculate quantities of x and y which maximize utility. B,Calculate value of Lagrange multiplier. C,Calculate quantities of X and Y consumed with a given price. D,alculate optimum level of output .
Feyisa Reply
Answer
Feyisa
c
Jabir
the market for lemon has 10 potential consumers, each having an individual demand curve p=101-10Qi, where p is price in dollar's per cup and Qi is the number of cups demanded per week by the i th consumer.Find the market demand curve using algebra. Draw an individual demand curve and the market dema
Gsbwnw Reply
suppose the production function is given by ( L, K)=L¼K¾.assuming capital is fixed find APL and MPL. consider the following short run production function:Q=6L²-0.4L³ a) find the value of L that maximizes output b)find the value of L that maximizes marginal product
Abdureman
types of unemployment
Yomi Reply
What is the difference between perfect competition and monopolistic competition?
Mohammed
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, The art of the pfug. OpenStax CNX. Jun 05, 2013 Download for free at http://cnx.org/content/col10523/1.34
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'The art of the pfug' conversation and receive update notifications?

Ask