User:Guy vandegrift/Editorial tricks

Editing tools

{{REVISIONID}}=2021669 .. Titleparts:User:Guy vandegrift . User:Guy vandegrift/Editorial tricks . User:Guy vandegrift/Editorial tricks

{{TOC limit|2}} {{Citation needed}} {{tl2|Cite journal}}

better way to break: <wbr>  (contains nbsp)

See w:Wikipedia:Advanced text formatting and w:User:Guy vandegrift/sandbox (w:Editorial tricks)

International Phonetic Alphabet - SIL
International Phonetic Alphabet - X-SAMPA
Use native keyboardCTRL+M ...Which do I want?

numbered equations

String Module Error: function rep expects a number as second parameter, received "

"
$E=mc^{2}$ (G5)

String Module Error: function rep expects a number as second parameter, received "

" G5String Module Error: function rep expects a number as second parameter, received "

"
a

(b)

String Module Error: function rep expects a number as second parameter, received "

"

h

Help pages

Text and transclusion

Printing beyond the window

38-Newfunction: row1: {<!--c24ElectromagneticWaves_displacementCurrent_2-->A circlular capactitor of radius  3.2 m has a gap of 13 mm, and a charge of 49 μC.  Compute the surface integral  $c^{-2}\oint\vec E\cdot d\vec A$ over an inner face of the capacitor.}
38-Newfunction: row3: {<!--AstroApparentRetroMotion_7--> If a planet that is very, very far from the Sun begins a retrograde, how many months must pass before it begins the next retrograde?  }
38-Newfunction: row4: {<!--AstroGalileanMoons_5-->Immediately after publication of Newton's laws of physics (Principia), it was possible to "calculate" the mass of Jupiter.  What important caveat applied to this calculation?   }
38-Newfunction: row5: {<!--AstroLunarphasesAdvancedB_53-->At 6pm a waning crescent moon would be}
38-Newfunction: row6: {<!--c22Magnetism_ampereLawSymmetry_3-->H is defined by, B=μ<sub>0</sub>H, where B is magnetic field. A current of 84A passes along the z-axis.  Use symmetry to find the integral, $\int \vec H\cdot\vec{d\ell}$, from the point {{nowrap begin}}(0,9.3){{nowrap end}} to the point {{nowrap begin}}(9.3,9.3){{nowrap end}}.}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt

Textfiles

fprintf(fout,'%s\n','text');

Centered and right margined text

center:
<div class="center" style="width: auto; margin-left: auto; margin-right: auto;">text</div>
center small:
<div class="center" style="width: auto; margin-left: auto; margin-right: auto;">text</div>
right:
<div style="text-align: right; direction: ltr; margin-left: 1em;">text</div>
right small:
<div style="text-align: right; direction: ltr; margin-left: 1em;">text</div>

Transclusion

See below for actual templates for copy/paste

Multiple equations

${\begin{matrix}u&={\tfrac {1}{\sqrt {2}}}(x+y)\qquad &x&={\tfrac {1}{\sqrt {2}}}(u+v)\\v&={\tfrac {1}{\sqrt {2}}}(x-y)\qquad &y&={\tfrac {1}{\sqrt {2}}}(u-v)\end{matrix}}$ \begin{align} u & = \tfrac{1}{\sqrt{2}}(x+y) \qquad & x &= \tfrac{1}{\sqrt{2}}(u+v) \\ v & = \tfrac{1}{\sqrt{2}}(x-y) \qquad & y &= \tfrac{1}{\sqrt{2}}(u-v) \end{align}

arrays1

$\left[{\begin{array}{c|c}x-2\sigma &\sigma &0\\\hline 2\sigma &-2\sigma -\beta \epsilon &\beta \epsilon \\\hline 0&\epsilon &x-\alpha -\epsilon \end{array}}\right]\cdot \left[{\begin{array}{c|c}y_{1}\\\hline y_{2}\\\hline y_{A}\end{array}}\right]=0$ arrays2

${\begin{pmatrix}x-2\sigma &\sigma &0\\2\sigma &-2\sigma -\beta \epsilon &\beta \epsilon \\0&\epsilon &x-\alpha -\epsilon \end{pmatrix}}\cdot {\begin{bmatrix}y_{1}\\y_{2}\\y_{A}\end{bmatrix}}\ =0$ Labeled and unlabeled transclusion

Transclusion of unlabeled sections

{{#lsth:OpenStax College|Making the testbank user friendly}}

click to view transclusion

Labeled section transclusion

<section begin=chapter1 />this is a chapter<section end=chapter1 />

How to call the text

{{#lst:resource_page_name/subpage|Title_of_section}}
click to view transclusion

The kinetic energy K of the system at time t is

$K(t)={\frac {1}{2}}mv^{2}(t)={\frac {1}{2}}m\omega ^{2}A^{2}\sin ^{2}(\omega t-\varphi )={\frac {1}{2}}kA^{2}\sin ^{2}(\omega t-\varphi ),$ and the potential energy is

$U(t)={\frac {1}{2}}kx^{2}(t)={\frac {1}{2}}kA^{2}\cos ^{2}(\omega t-\varphi ).$ The total mechanical energy of the system therefore has the constant value

$E=K+U={\frac {1}{2}}kA^{2}.$ comment

To understand these examples, visit:

${\underline {\overline {\left|ANSWER\right|}}}$ \underline{\overline{ \left | ANSWER\right |}}

box

 First line. Indented
 First line. Indented

Hidden text

Comment out text for editors

<!-- Hidden text -->

Grey bar white lightgrey(hides tables)

click to view or hide
• foo

Grey bar white not lightgrey(also hides tables)

click to view or hide
• foo

Jascript hidden text

Enable JavaScript to hide answers.
Click on a question to see the answer.
1. Visible1
hidden1
2. Visible2
hidden2

page breaks

Insert page break

<div style="page-break-before:always"></div><!--simple pagebreak-->

Keep together

<div style="page-break-inside:avoid;"><!--next section-->
text
text
</div><!--keep together-->

Footnotes and references

<ref group="note">This goes into a footnote section.</ref>

Call with {{reflist|group="note"|liststyle=lower-alpha}}

Subpages

{{cot|list of subpages}}{{Subpages/List}}{{cob}} -- this one lists them all
{{Subpages/Simple}} -- links with single word "Subpages"
{{Subpages}} -- Links with [[List]] of subpages.

Images

pixel counts and upright factors

Although pixel counts are easier to understand than upright factors, they adjust less well to user preferences. For example, suppose a picture contains some detail and by default is a bit too small, and you want to grow it by about 10%. Although "upright=1.1" and "240px" do the job equally well for the common case where the default width is 220 pixels, many of the users who set the default width to 300 pixels to work better with their high-resolution screens will be annoyed with "200px" because it will make the picture a third smaller than their preferred size. In contrast, "upright=1.1" will display the picture to them with a width of 330 pixels, and this is more likely to work well on their displays.

Pixel counts are typically better than upright factors for displaying combinations of pictures, some of which have known and limited sizes, and for displaying tiny icons that are intended to be combined with text.

Active user template

The user inserts {{subst:Contrib-using}} if teaching.

The user inserts {{subst:Contrib-creator}} if constructing.

side by side image

Cross product $|{\vec {a}}\times {\vec {b}}|=ab\sin \theta$ pdf license for quizbank and openstax

== Summary ==
This material was taken from work placed in the Public Domain by [[user:Guy vandegrift]], as well as material taken from
Openstax University Physics Volumes: '''[[:File:Openstax_University_Physics_Volume_1-LR.pdf|&nbsp;-1-&nbsp;]]''' '''[[:File:University Physics Volume 2-LR 20161006.pdf|&nbsp;-2-&nbsp;]]''' '''[[:File:UniversityPhysicsVolume3-LR.pdf|&nbsp;-3-&nbsp;]]'''
{{Information
|Description=low resolution calculus based intro physics
|Source=https://openstax.org/
|Date=2016
|Author=Samuel J. Ling, Truman State University, Jeff Sanny, Loyola Marymount University, and Bill Moebs, PhD

Contributing Authors
David Anderson, Albion College
Daniel Bowman, Ferrum College
Dedra Demaree, Georgetown University
Gerald Friedman, Santa Fe Community College
Lev Gasparov, University of North Florida
Edw. S. Ginsberg, University of Massachusetts
Alice Kolakowska, University of Memphis
Lee LaRue, Paris Junior College
Mark Lattery, University of Wisconsin
Richard Ludlow, Daniel Webster College
Patrick Motl, Indiana University–Kokomo
Tao Pang, University of Nevada–Las Vegas
Kenneth Podolak, Plattsburgh State University
Takashi Sato, Kwantlen Polytechnic University
David Smith, University of the Virgin Islands
Joseph Trout, Richard Stockton College
Kevin Wheelock, Bellevue College

|Permission= (CC BY-NC-SA)
© 2016 Rice University. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution 4.0 International License. Under this license, any user of this textbook or the textbook contents herein must provide proper attribution as follows:
* If you redistribute this textbook in a digital format (including but not limited to EPUB, PDF, and HTML), then you must retain on every page the following attribution:

* If you redistribute this textbook in a print format, then you must include on every physical page the following attribution:

*If you redistribute part of this textbook, then you must retain in every digital format page view (including but not limited to EPUB, PDF, and HTML) and on every physical printed page the following attribution:

*If you use this textbook as a bibliographic reference, then you should cite it as follows: OpenStax, University Physics Volume x. OpenStax. 19 September 2016. <http://cnx.org>.