Skip to content

Commit

Permalink
Use new 'plain' lexer
Browse files Browse the repository at this point in the history
This should give white font on dark background for non-highlighted code
blocks in both the webpage and the pdf document.
  • Loading branch information
davidchall committed Aug 9, 2016
1 parent 0f26e50 commit 72cbe5c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion .static/dark_background.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
div[class^='highlight'] pre {
background-color: #272822 !important;
color: #f8f8f2 !important;
}

.highlight .nc {
Expand Down
2 changes: 1 addition & 1 deletion extensions/imaging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The number of image files read by Topas is determined by the parameter:
If this value is just 1, Topas will look for imaging files directly in your DicomDirectory.
If this value is larger, Topas will expect your DicomDirectory to contain numbered subdirectories:

.. code-block:: text
.. code-block:: plain
YourDicomDirectory/1
YourDicomDirectory/2
Expand Down
2 changes: 1 addition & 1 deletion extensions/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ To build your new TOPAS executable that incorporates all of your extensions, you

You can even have subdirectories within your extensions directory, so that you might for example have different subdirectories with extensions from different collaborators:

.. code-block:: text
.. code-block:: plain
extensions/my_extensions_from_university_a
extensions/my_estensions_from_company_b
Expand Down
8 changes: 4 additions & 4 deletions parameters/geometry/specialized.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ A track pattern from the parameter above; (left) a complete set of the track vie

When TOPAS builds the geometry, you will see the numbers are input properly from console output as:

.. code-block:: text
.. code-block:: plain
---UpperTrack1 , # of Blocks: 14
0th Block
Expand Down Expand Up @@ -195,7 +195,7 @@ Here is the complete set of the parameters for the above Propeller::

While TOPAS starts to build geometries, you can confirm whether the numbers you put are input properly from console output as:

.. code-block:: text
.. code-block:: plain
Layer: "0" , Thickness: 0.0356 (cm), Angle: 63.15 (deg), Material: G4_POLYVINYL_ACETATE
Blade "0", Angle (-31.575 deg, 31.575deg)
Expand Down Expand Up @@ -267,7 +267,7 @@ To check that the numbers are input properly::

will generate console output as:

.. code-block:: text
.. code-block:: plain
Ridge points (x,z) --- :8
P initial : (0, 0) cm
Expand Down Expand Up @@ -345,7 +345,7 @@ The following parameters is full set for modeling the above multi wire chamber::

When TOPAS starts to build geometries, you will see the numbers are input properly from console output as:

.. code-block:: text
.. code-block:: plain
Layer: "0" , # of Wires: 3, Alignment: X, Wire (Rmin= 0 cm, Rmax= 1 cm, HL= 20 cm) , Z Position in the Chamber: 5 (cm)
Wire "0", Position (0 cm, -10 cm)
Expand Down
2 changes: 1 addition & 1 deletion parameters/graphics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Visualization control for a specific component is done as part of the Ge/ parame

We sometimes see error messages from visualization of the following form:

.. code-block:: text
.. code-block:: plain
G4PhysicalVolumeSearchScene::FindVolume:
Required volume "PhantomCentralDose_1x1x40", copy no. 0, found more than once...
Expand Down
2 changes: 1 addition & 1 deletion parameters/overall/multithreading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ By default, TOPAS will occupy just one CPU thread. To use more, adjust::

By default, console output from various threads will be interleaved. Output from each worker thread will have a distinctive prefix, such as:

.. code-block:: text
.. code-block:: plain
G4WT0 >
G4WT1 >
Expand Down
2 changes: 1 addition & 1 deletion parameters/scoring/misc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ If only sum is requested, simple accumulation is used.
If mean, second moment, variance or standard deviation is requested, accumulation uses the more numerically stable algorithm from:
Donald E. Knuth (1998). The Art of Computer Programming, volume 2: Seminumerical Algorithms, 3rd edn., p. 232. Boston: Addison-Wesley:

.. code-block:: text
.. code-block:: plain
for x in data:
n = n+1
Expand Down
4 changes: 2 additions & 2 deletions parameters/scoring/phasespace.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ For the ASCII and Binary formats, you can turn on additional columns of phase sp

The last of these gives the four variable parts of a random seed. Replaying this random seed will get you the same event back later. The full random seed should be a file of the form:

.. code-block:: text
.. code-block:: plain
Uvec
1878463799
Expand All @@ -68,7 +68,7 @@ To reuse a saved seed, create a file with the above five lines, replacing the fo

And then typing:

.. code-block:: text
.. code-block:: plain
/random/resetEngineFrom event1.rndm
exit
Expand Down

0 comments on commit 72cbe5c

Please sign in to comment.