|
10.
|
|
|
= Document Formatting Syntax
[[http://newton.sf.net|Newton]] supports many types of document formatting through the use of a simple markup language. The markup language is easy to learn so that you can start formatting your documents very quickly. This page contains a description of all formatting supported by [[http://newton.sf.net|Newton]]. Each description will consist of both the wiki syntax needed for that formatting, and the formatted result.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|
|
Translated by
voyeg3r
|
|
Reviewed by
voyeg3r
|
|
|
|
Located in
../src/NewtonWikiText.py:42
|
|
11.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
|
|
Translated by
voyeg3r
|
|
Reviewed by
voyeg3r
|
|
|
|
Located in
../src/NewtonWikiText.py:48
|
|
12.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
|
|
Translated by
voyeg3r
|
|
Reviewed by
voyeg3r
|
|
|
|
Located in
../src/NewtonWikiText.py:60
|
|
13.
|
|
|
== Headings or Sections
[[http://newton.sf.net|Newton]] supports up to five levels of headings. Start a line with ''='' for a first level heading, ''=='' for a second level heading, ''==='' for a third level, and so on.
= Heading 1
Some text.
== Heading 2
Some more text.
=== Heading 3
And so on...
= Heading 1
Some text.
== Heading 2
Some more text.
=== Heading 3
And so on...
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
|
|
Translated by
voyeg3r
|
|
Reviewed by
voyeg3r
|
|
|
|
Located in
../src/NewtonWikiText.py:92
|
|
14.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
|
|
Translated by
voyeg3r
|
|
Reviewed by
voyeg3r
|
|
|
|
Located in
../src/NewtonWikiText.py:112
|
|
15.
|
|
|
== Embedded Images
{{ http://www.google.ca/intl/en_ca/images/logo.gif|I'm the Google Logo}}
Both local images and remote (on the Internet) images can be embedded into your documents easily with a simple syntax. There is also a GUI dialog available in the edit screen to make it even easier!
For example, if you are connected to the Internet right now, you should see the Google logo to the right of this text. It also has a caption!
To embed this image, I used the following syntax:
{{ http://www.google.ca/intl/en_ca/images/logo.gif|I'm the Google Logo}}
Notice the space to the left of the URL where there is none on the right side in the above example? That means that we want the image to "float right". With this syntax, the image will appear on the right side of the document while the text neatly wraps around it. Think of it like this; there is a space on the left, because the image has been //shoved// to the right. The same works to make the image "float left" by simply putting the space on the right. The text after the ''|'' symbol is the caption.
If you want the image to appear centered in your document, put a space on both sides like this:
{{ http://www.google.ca/intl/en_ca/images/logo.gif }}
And now the image appears centered. {{ http://www.google.ca/intl/en_ca/images/logo.gif?200 }}
That image appears smaller though because I also used the simple image scaling syntax. The syntax that I used for the centered image looks like this:
{{ http://www.google.ca/intl/en_ca/images/logo.gif?200 }}
Notice the "''?200''" part after the URL? This means that you want the image to appear 200 pixels wide, and scale the height automatically so that the image doesn't look stretched. If you **do** want to //stretch// the image, you can specify both width **and** height like this:
{{ http://www.google.ca/intl/en_ca/images/logo.gif?500x50 }}
{{ http://www.google.ca/intl/en_ca/images/logo.gif?500x50 }}
That means you want the image to be scaled to 500 pixels wide by 50 pixels high.
Locally stored (images on your own computer) can be embedded as well. Just specify the local path to the image file instead of a URL. For example, I could enter:
{{ /home/dcraven/newton.png }}
And that would display the image called ''newton.png'', centered in my document. The same scaling and positioning syntax that applied for remote images still applies exactly the same way for local images.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
== Inclusão de imagens
{{ http://www.google.ca/intl/en_ca/images/logo.gif|I'm the Google Logo}}
Tanto imagens locais quanto Externas (Internet) podem ser inseridas em seus documentos com uma sintaxe muito simples. Há uma caixa de diálogo acessível na janela de edição para isto!
Por exemplo, se você está conectado à Internet agora, pode ver a logomarca do Google à direita deste texto. It also has a caption!
Para incluir esta imagem, eu usei a seguinte sintaxe:
{{ http://www.google.ca/intl/en_ca/images/logo.gif|I'm the Google Logo}}
Note o espaço a esquerda da URL porquê há espaço a direita no exemplo acima? Isto determina "Alinhamento à direita". Com esta sintaxe, a imagem aparecerá alinhada a direita do documento enquanto que o texto envolverá a mesma. Há um espaço à direita, porque a imagem será //mostrada// à direita. O mesmo acontece com uma imagem "alinhada à esquerda", simplesmente deixe um espaço à direita. O texto após o simbolo ''|'' é o título da imagem.
Se deseja que a figura aparece centralizada, Coloque espaços em ambos os lados:
{{ http://www.google.ca/intl/en_ca/images/logo.gif }}
E a nova imagem aparece centralizada. {{ http://www.google.ca/intl/en_ca/images/logo.gif?200 }}
Sintaxe para centralizar a imagem:
{{ http://www.google.ca/intl/en_ca/images/logo.gif?200 }}
Notou a parte "''?200''" da URL? Isto informa a largura em pixels para a imagem, e isto determina automaticamente a algura. Caso a imagem fique desproporcional você pode **informar** ambas as dimensões:
{{ http://www.google.ca/intl/en_ca/images/logo.gif?500x50 }}
{{ http://www.google.ca/intl/en_ca/images/logo.gif?500x50 }}
Isto determina que sua imagem terá 500 pixels de largura por 50 pixels de altura.
Imagens (gravadas no seu computador) podem ser inseridas. Basta especificar o caminho para a imagem. Por exemplo, eu poderia Entrar:
{{ /home/dcraven/newton.png }}
And that would display the image called ''newton.png'', centralizada em meu documento. A mesma sintaxe para posição e tamanho pode ser aplicada para imagens remotas.
|
|
Translated and reviewed by
André Gondim
|
|
|
|
Located in
../src/NewtonWikiText.py:126
|
|
16.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
|
|
Translated and reviewed by
André Gondim
|
|
|
|
Located in
../src/NewtonWikiText.py:161
|
|
17.
|
|
|
== Miscellaneous Formatting
* New paragraphs are created by adding a blank line.
* Horizontal rules or lines are made by putting four or more dashes on a line by themselves. Like this,
----
----
* Code blocks (sections with wiki markup ignored, like the examples above) are created by starting a line with two spaces.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
|
|
Translated by
voyeg3r
|
|
Reviewed by
voyeg3r
|
|
|
|
Located in
../src/NewtonWikiText.py:177
|
|
18.
|
|
|
Last modified
|
|
|
|
Última modificação
|
|
Translated and reviewed by
voyeg3r
|
|
|
|
Located in
../src/NewtonWikiText.py:231
|
|
19.
|
|
|
Preferences
|
|
|
|
Preferências
|
|
Translated by
voyeg3r
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
../src/NewtonApplet.py:65 ../src/NewtonGui.py:94
|