how do i get an empty line in my flashcard
documentclass[frontgrid,backgrid,a4paper,11pt]{flacards}
usepackage{etoolbox}<br>
pretocmd{card}{defcurhint{#1}}{}{}<br>
pagesetup{2}{4}
usepackage{xeCJK}<br>
% usepackage[nofonts,card{pt]{ctex}<br>
setCJKmainfont{AR PL UKai CN}<br>
setmainfont{Linux Libertine O}<br>
renewcommand{cardtextstylef}{small}<br>
renewcommand{cardtextstyleb}{small}<br>
renewcommand{frfoot}{}<br>
renewcommand{brfoot}{}<br>
% Temporarily disable new lines when displaying the riddle on the back<br>
begin{document}<br>
card{begin{flushleft}<br>A particle of charge q enters a region of uniform magnetic field B(pointing into the page. The field deflects the particle a distance d above the original line of flight, as shown in Fig. Is the charge positive or negative? In terms of a, d, B, q, find the momentum of the particle.<br>end{flushleft}includegraphics[width=50mm]{p5,1.PNG}}{Problem 5.1}
card{begin{flushleft}In 1897, J.J. Thomson "discovered" the electron by measuring the charge-to-mass ratio of "cathode rays" (actually,streams of electrons, with charge q and mass m) as follows:\ \(a)First he passed the beam through uniform crossed electric and magnetic field $vec{E}$ and $vec{B}$ mutually perpendicular, and both of them perpendicular to the beam), and adjusted the electric field until he got zero deflection. What, then, was the speed of the particles (in terms of E and B)? \ \ (b) Then he turned off the electric field, and measured the radius of curvature, R, of the beam, as deflected by the magnetic field alone. In terms of E, B, and R, what is the charge-to-mass ratio (q/m) of the particles? end{flushleft} }{Problem 5.3}
card{begin{flushleft}Suppose that the magnetic field in some region has the form$$B = kzhat{x}$$(where k is a constant). Find the force on a square loop (side a), lying in the yz plane and centered at the origin, if it carries a current $I$, flowing counterclockwise, when you look down the x axis.end{flushleft}}{Problem 5.4}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
end{document}
ok this is my code. I get the error that there is no line to end. and then i do not get an empty line between
the intro and a, and between a and b.
how do i fix this?
Edit:
I fixed it only not for 5.4 which still gives an error even though there are no line break in 5.4
line-breaking flashcards
add a comment |
documentclass[frontgrid,backgrid,a4paper,11pt]{flacards}
usepackage{etoolbox}<br>
pretocmd{card}{defcurhint{#1}}{}{}<br>
pagesetup{2}{4}
usepackage{xeCJK}<br>
% usepackage[nofonts,card{pt]{ctex}<br>
setCJKmainfont{AR PL UKai CN}<br>
setmainfont{Linux Libertine O}<br>
renewcommand{cardtextstylef}{small}<br>
renewcommand{cardtextstyleb}{small}<br>
renewcommand{frfoot}{}<br>
renewcommand{brfoot}{}<br>
% Temporarily disable new lines when displaying the riddle on the back<br>
begin{document}<br>
card{begin{flushleft}<br>A particle of charge q enters a region of uniform magnetic field B(pointing into the page. The field deflects the particle a distance d above the original line of flight, as shown in Fig. Is the charge positive or negative? In terms of a, d, B, q, find the momentum of the particle.<br>end{flushleft}includegraphics[width=50mm]{p5,1.PNG}}{Problem 5.1}
card{begin{flushleft}In 1897, J.J. Thomson "discovered" the electron by measuring the charge-to-mass ratio of "cathode rays" (actually,streams of electrons, with charge q and mass m) as follows:\ \(a)First he passed the beam through uniform crossed electric and magnetic field $vec{E}$ and $vec{B}$ mutually perpendicular, and both of them perpendicular to the beam), and adjusted the electric field until he got zero deflection. What, then, was the speed of the particles (in terms of E and B)? \ \ (b) Then he turned off the electric field, and measured the radius of curvature, R, of the beam, as deflected by the magnetic field alone. In terms of E, B, and R, what is the charge-to-mass ratio (q/m) of the particles? end{flushleft} }{Problem 5.3}
card{begin{flushleft}Suppose that the magnetic field in some region has the form$$B = kzhat{x}$$(where k is a constant). Find the force on a square loop (side a), lying in the yz plane and centered at the origin, if it carries a current $I$, flowing counterclockwise, when you look down the x axis.end{flushleft}}{Problem 5.4}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
end{document}
ok this is my code. I get the error that there is no line to end. and then i do not get an empty line between
the intro and a, and between a and b.
how do i fix this?
Edit:
I fixed it only not for 5.4 which still gives an error even though there are no line break in 5.4
line-breaking flashcards
Welcome to TeX.SX. Have you considered reading an introduction to LaTeX? You cannot use double backslashes to add empty lines in the output.
– Johannes_B
Mar 29 at 5:43
welcome to tex.se! that we can help you and understand what is your problem, please extend your code fragment to complete small document beginning withdocumentclass{...}
and ending withend{document}
.
– Zarko
Mar 29 at 5:43
i also get the error for my 5.4 question while i dont have any linebreaks in there so the document is fine i just get the error.
– Danielvanheuven
Mar 29 at 6:01
add a comment |
documentclass[frontgrid,backgrid,a4paper,11pt]{flacards}
usepackage{etoolbox}<br>
pretocmd{card}{defcurhint{#1}}{}{}<br>
pagesetup{2}{4}
usepackage{xeCJK}<br>
% usepackage[nofonts,card{pt]{ctex}<br>
setCJKmainfont{AR PL UKai CN}<br>
setmainfont{Linux Libertine O}<br>
renewcommand{cardtextstylef}{small}<br>
renewcommand{cardtextstyleb}{small}<br>
renewcommand{frfoot}{}<br>
renewcommand{brfoot}{}<br>
% Temporarily disable new lines when displaying the riddle on the back<br>
begin{document}<br>
card{begin{flushleft}<br>A particle of charge q enters a region of uniform magnetic field B(pointing into the page. The field deflects the particle a distance d above the original line of flight, as shown in Fig. Is the charge positive or negative? In terms of a, d, B, q, find the momentum of the particle.<br>end{flushleft}includegraphics[width=50mm]{p5,1.PNG}}{Problem 5.1}
card{begin{flushleft}In 1897, J.J. Thomson "discovered" the electron by measuring the charge-to-mass ratio of "cathode rays" (actually,streams of electrons, with charge q and mass m) as follows:\ \(a)First he passed the beam through uniform crossed electric and magnetic field $vec{E}$ and $vec{B}$ mutually perpendicular, and both of them perpendicular to the beam), and adjusted the electric field until he got zero deflection. What, then, was the speed of the particles (in terms of E and B)? \ \ (b) Then he turned off the electric field, and measured the radius of curvature, R, of the beam, as deflected by the magnetic field alone. In terms of E, B, and R, what is the charge-to-mass ratio (q/m) of the particles? end{flushleft} }{Problem 5.3}
card{begin{flushleft}Suppose that the magnetic field in some region has the form$$B = kzhat{x}$$(where k is a constant). Find the force on a square loop (side a), lying in the yz plane and centered at the origin, if it carries a current $I$, flowing counterclockwise, when you look down the x axis.end{flushleft}}{Problem 5.4}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
end{document}
ok this is my code. I get the error that there is no line to end. and then i do not get an empty line between
the intro and a, and between a and b.
how do i fix this?
Edit:
I fixed it only not for 5.4 which still gives an error even though there are no line break in 5.4
line-breaking flashcards
documentclass[frontgrid,backgrid,a4paper,11pt]{flacards}
usepackage{etoolbox}<br>
pretocmd{card}{defcurhint{#1}}{}{}<br>
pagesetup{2}{4}
usepackage{xeCJK}<br>
% usepackage[nofonts,card{pt]{ctex}<br>
setCJKmainfont{AR PL UKai CN}<br>
setmainfont{Linux Libertine O}<br>
renewcommand{cardtextstylef}{small}<br>
renewcommand{cardtextstyleb}{small}<br>
renewcommand{frfoot}{}<br>
renewcommand{brfoot}{}<br>
% Temporarily disable new lines when displaying the riddle on the back<br>
begin{document}<br>
card{begin{flushleft}<br>A particle of charge q enters a region of uniform magnetic field B(pointing into the page. The field deflects the particle a distance d above the original line of flight, as shown in Fig. Is the charge positive or negative? In terms of a, d, B, q, find the momentum of the particle.<br>end{flushleft}includegraphics[width=50mm]{p5,1.PNG}}{Problem 5.1}
card{begin{flushleft}In 1897, J.J. Thomson "discovered" the electron by measuring the charge-to-mass ratio of "cathode rays" (actually,streams of electrons, with charge q and mass m) as follows:\ \(a)First he passed the beam through uniform crossed electric and magnetic field $vec{E}$ and $vec{B}$ mutually perpendicular, and both of them perpendicular to the beam), and adjusted the electric field until he got zero deflection. What, then, was the speed of the particles (in terms of E and B)? \ \ (b) Then he turned off the electric field, and measured the radius of curvature, R, of the beam, as deflected by the magnetic field alone. In terms of E, B, and R, what is the charge-to-mass ratio (q/m) of the particles? end{flushleft} }{Problem 5.3}
card{begin{flushleft}Suppose that the magnetic field in some region has the form$$B = kzhat{x}$$(where k is a constant). Find the force on a square loop (side a), lying in the yz plane and centered at the origin, if it carries a current $I$, flowing counterclockwise, when you look down the x axis.end{flushleft}}{Problem 5.4}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
card{begin{flushleft}end{flushleft}}{Problem 5.1}
end{document}
ok this is my code. I get the error that there is no line to end. and then i do not get an empty line between
the intro and a, and between a and b.
how do i fix this?
Edit:
I fixed it only not for 5.4 which still gives an error even though there are no line break in 5.4
line-breaking flashcards
line-breaking flashcards
edited Mar 29 at 10:15
Danielvanheuven
asked Mar 29 at 5:38
DanielvanheuvenDanielvanheuven
112
112
Welcome to TeX.SX. Have you considered reading an introduction to LaTeX? You cannot use double backslashes to add empty lines in the output.
– Johannes_B
Mar 29 at 5:43
welcome to tex.se! that we can help you and understand what is your problem, please extend your code fragment to complete small document beginning withdocumentclass{...}
and ending withend{document}
.
– Zarko
Mar 29 at 5:43
i also get the error for my 5.4 question while i dont have any linebreaks in there so the document is fine i just get the error.
– Danielvanheuven
Mar 29 at 6:01
add a comment |
Welcome to TeX.SX. Have you considered reading an introduction to LaTeX? You cannot use double backslashes to add empty lines in the output.
– Johannes_B
Mar 29 at 5:43
welcome to tex.se! that we can help you and understand what is your problem, please extend your code fragment to complete small document beginning withdocumentclass{...}
and ending withend{document}
.
– Zarko
Mar 29 at 5:43
i also get the error for my 5.4 question while i dont have any linebreaks in there so the document is fine i just get the error.
– Danielvanheuven
Mar 29 at 6:01
Welcome to TeX.SX. Have you considered reading an introduction to LaTeX? You cannot use double backslashes to add empty lines in the output.
– Johannes_B
Mar 29 at 5:43
Welcome to TeX.SX. Have you considered reading an introduction to LaTeX? You cannot use double backslashes to add empty lines in the output.
– Johannes_B
Mar 29 at 5:43
welcome to tex.se! that we can help you and understand what is your problem, please extend your code fragment to complete small document beginning with
documentclass{...}
and ending with end{document}
.– Zarko
Mar 29 at 5:43
welcome to tex.se! that we can help you and understand what is your problem, please extend your code fragment to complete small document beginning with
documentclass{...}
and ending with end{document}
.– Zarko
Mar 29 at 5:43
i also get the error for my 5.4 question while i dont have any linebreaks in there so the document is fine i just get the error.
– Danielvanheuven
Mar 29 at 6:01
i also get the error for my 5.4 question while i dont have any linebreaks in there so the document is fine i just get the error.
– Danielvanheuven
Mar 29 at 6:01
add a comment |
1 Answer
1
active
oldest
votes
It is not allowed to have a double \
in the text. There are various other ways to insert a larger vertical space, for example bigbreak
(see Lengths and when to use them).
Furthermore, you cannot use end{flushleft}
at the end of the argument to card
. Instead you can use raggedright
for each card so the contents will be left justified instead of centered. You can also add that to the card text style to automatically set the left alignment for all cards.
In the code below I have replaced $$
with [ ]
(see Why is [ ... ] preferable to $$ ... $$?).
MWE:
documentclass[frontgrid,backgrid,a4paper,11pt]{flacards}
usepackage{graphicx}
pagesetup{2}{4}
renewcommand{cardtextstylef}{smallraggedright}
renewcommand{cardtextstyleb}{small}
renewcommand{frfoot}{}
renewcommand{brfoot}{}
begin{document}
card{%
A particle of charge q enters a region of uniform magnetic field B(pointing into the page. The field deflects the particle a distance d above the original line of flight, as shown in Fig. Is the charge positive or negative? In terms of a, d, B, q, find the momentum of the particle.%
centering
includegraphics[width=50mm]{example-image}%
}{Problem 5.1}
card{In 1897, J.J. Thomson "discovered" the electron by measuring the charge-to-mass ratio of "cathode rays" (actually,streams of electrons, with charge q and mass m) as follows:bigbreak (a) First he passed the beam through uniform crossed electric and magnetic field $vec{E}$ and $vec{B}$ mutually perpendicular, and both of them perpendicular to the beam), and adjusted the electric field until he got zero deflection. What, then, was the speed of the particles (in terms of E and B)?\ (b) Then he turned off the electric field, and measured the radius of curvature, R, of the beam, as deflected by the magnetic field alone. In terms of E, B, and R, what is the charge-to-mass ratio (q/m) of the particles?}{Problem 5.3}
card{Suppose that the magnetic field in some region has the form [B = kzhat{x}] (where k is a constant). Find the force on a square loop (side a), lying in the yz plane and centered at the origin, if it carries a current $I$, flowing counterclockwise, when you look down the x axis.}{Problem 5.4}
end{document}
Result:
1
Thanks for the answer it worked no errors anymore. i cant upvote your answer but it was really helpfull.
– Danielvanheuven
Mar 30 at 5:45
@Danielvanheuven I'm substituting you for the vote. You've done really well.
– Sebastiano
Mar 30 at 13:12
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482054%2fhow-do-i-get-an-empty-line-in-my-flashcard%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It is not allowed to have a double \
in the text. There are various other ways to insert a larger vertical space, for example bigbreak
(see Lengths and when to use them).
Furthermore, you cannot use end{flushleft}
at the end of the argument to card
. Instead you can use raggedright
for each card so the contents will be left justified instead of centered. You can also add that to the card text style to automatically set the left alignment for all cards.
In the code below I have replaced $$
with [ ]
(see Why is [ ... ] preferable to $$ ... $$?).
MWE:
documentclass[frontgrid,backgrid,a4paper,11pt]{flacards}
usepackage{graphicx}
pagesetup{2}{4}
renewcommand{cardtextstylef}{smallraggedright}
renewcommand{cardtextstyleb}{small}
renewcommand{frfoot}{}
renewcommand{brfoot}{}
begin{document}
card{%
A particle of charge q enters a region of uniform magnetic field B(pointing into the page. The field deflects the particle a distance d above the original line of flight, as shown in Fig. Is the charge positive or negative? In terms of a, d, B, q, find the momentum of the particle.%
centering
includegraphics[width=50mm]{example-image}%
}{Problem 5.1}
card{In 1897, J.J. Thomson "discovered" the electron by measuring the charge-to-mass ratio of "cathode rays" (actually,streams of electrons, with charge q and mass m) as follows:bigbreak (a) First he passed the beam through uniform crossed electric and magnetic field $vec{E}$ and $vec{B}$ mutually perpendicular, and both of them perpendicular to the beam), and adjusted the electric field until he got zero deflection. What, then, was the speed of the particles (in terms of E and B)?\ (b) Then he turned off the electric field, and measured the radius of curvature, R, of the beam, as deflected by the magnetic field alone. In terms of E, B, and R, what is the charge-to-mass ratio (q/m) of the particles?}{Problem 5.3}
card{Suppose that the magnetic field in some region has the form [B = kzhat{x}] (where k is a constant). Find the force on a square loop (side a), lying in the yz plane and centered at the origin, if it carries a current $I$, flowing counterclockwise, when you look down the x axis.}{Problem 5.4}
end{document}
Result:
1
Thanks for the answer it worked no errors anymore. i cant upvote your answer but it was really helpfull.
– Danielvanheuven
Mar 30 at 5:45
@Danielvanheuven I'm substituting you for the vote. You've done really well.
– Sebastiano
Mar 30 at 13:12
add a comment |
It is not allowed to have a double \
in the text. There are various other ways to insert a larger vertical space, for example bigbreak
(see Lengths and when to use them).
Furthermore, you cannot use end{flushleft}
at the end of the argument to card
. Instead you can use raggedright
for each card so the contents will be left justified instead of centered. You can also add that to the card text style to automatically set the left alignment for all cards.
In the code below I have replaced $$
with [ ]
(see Why is [ ... ] preferable to $$ ... $$?).
MWE:
documentclass[frontgrid,backgrid,a4paper,11pt]{flacards}
usepackage{graphicx}
pagesetup{2}{4}
renewcommand{cardtextstylef}{smallraggedright}
renewcommand{cardtextstyleb}{small}
renewcommand{frfoot}{}
renewcommand{brfoot}{}
begin{document}
card{%
A particle of charge q enters a region of uniform magnetic field B(pointing into the page. The field deflects the particle a distance d above the original line of flight, as shown in Fig. Is the charge positive or negative? In terms of a, d, B, q, find the momentum of the particle.%
centering
includegraphics[width=50mm]{example-image}%
}{Problem 5.1}
card{In 1897, J.J. Thomson "discovered" the electron by measuring the charge-to-mass ratio of "cathode rays" (actually,streams of electrons, with charge q and mass m) as follows:bigbreak (a) First he passed the beam through uniform crossed electric and magnetic field $vec{E}$ and $vec{B}$ mutually perpendicular, and both of them perpendicular to the beam), and adjusted the electric field until he got zero deflection. What, then, was the speed of the particles (in terms of E and B)?\ (b) Then he turned off the electric field, and measured the radius of curvature, R, of the beam, as deflected by the magnetic field alone. In terms of E, B, and R, what is the charge-to-mass ratio (q/m) of the particles?}{Problem 5.3}
card{Suppose that the magnetic field in some region has the form [B = kzhat{x}] (where k is a constant). Find the force on a square loop (side a), lying in the yz plane and centered at the origin, if it carries a current $I$, flowing counterclockwise, when you look down the x axis.}{Problem 5.4}
end{document}
Result:
1
Thanks for the answer it worked no errors anymore. i cant upvote your answer but it was really helpfull.
– Danielvanheuven
Mar 30 at 5:45
@Danielvanheuven I'm substituting you for the vote. You've done really well.
– Sebastiano
Mar 30 at 13:12
add a comment |
It is not allowed to have a double \
in the text. There are various other ways to insert a larger vertical space, for example bigbreak
(see Lengths and when to use them).
Furthermore, you cannot use end{flushleft}
at the end of the argument to card
. Instead you can use raggedright
for each card so the contents will be left justified instead of centered. You can also add that to the card text style to automatically set the left alignment for all cards.
In the code below I have replaced $$
with [ ]
(see Why is [ ... ] preferable to $$ ... $$?).
MWE:
documentclass[frontgrid,backgrid,a4paper,11pt]{flacards}
usepackage{graphicx}
pagesetup{2}{4}
renewcommand{cardtextstylef}{smallraggedright}
renewcommand{cardtextstyleb}{small}
renewcommand{frfoot}{}
renewcommand{brfoot}{}
begin{document}
card{%
A particle of charge q enters a region of uniform magnetic field B(pointing into the page. The field deflects the particle a distance d above the original line of flight, as shown in Fig. Is the charge positive or negative? In terms of a, d, B, q, find the momentum of the particle.%
centering
includegraphics[width=50mm]{example-image}%
}{Problem 5.1}
card{In 1897, J.J. Thomson "discovered" the electron by measuring the charge-to-mass ratio of "cathode rays" (actually,streams of electrons, with charge q and mass m) as follows:bigbreak (a) First he passed the beam through uniform crossed electric and magnetic field $vec{E}$ and $vec{B}$ mutually perpendicular, and both of them perpendicular to the beam), and adjusted the electric field until he got zero deflection. What, then, was the speed of the particles (in terms of E and B)?\ (b) Then he turned off the electric field, and measured the radius of curvature, R, of the beam, as deflected by the magnetic field alone. In terms of E, B, and R, what is the charge-to-mass ratio (q/m) of the particles?}{Problem 5.3}
card{Suppose that the magnetic field in some region has the form [B = kzhat{x}] (where k is a constant). Find the force on a square loop (side a), lying in the yz plane and centered at the origin, if it carries a current $I$, flowing counterclockwise, when you look down the x axis.}{Problem 5.4}
end{document}
Result:
It is not allowed to have a double \
in the text. There are various other ways to insert a larger vertical space, for example bigbreak
(see Lengths and when to use them).
Furthermore, you cannot use end{flushleft}
at the end of the argument to card
. Instead you can use raggedright
for each card so the contents will be left justified instead of centered. You can also add that to the card text style to automatically set the left alignment for all cards.
In the code below I have replaced $$
with [ ]
(see Why is [ ... ] preferable to $$ ... $$?).
MWE:
documentclass[frontgrid,backgrid,a4paper,11pt]{flacards}
usepackage{graphicx}
pagesetup{2}{4}
renewcommand{cardtextstylef}{smallraggedright}
renewcommand{cardtextstyleb}{small}
renewcommand{frfoot}{}
renewcommand{brfoot}{}
begin{document}
card{%
A particle of charge q enters a region of uniform magnetic field B(pointing into the page. The field deflects the particle a distance d above the original line of flight, as shown in Fig. Is the charge positive or negative? In terms of a, d, B, q, find the momentum of the particle.%
centering
includegraphics[width=50mm]{example-image}%
}{Problem 5.1}
card{In 1897, J.J. Thomson "discovered" the electron by measuring the charge-to-mass ratio of "cathode rays" (actually,streams of electrons, with charge q and mass m) as follows:bigbreak (a) First he passed the beam through uniform crossed electric and magnetic field $vec{E}$ and $vec{B}$ mutually perpendicular, and both of them perpendicular to the beam), and adjusted the electric field until he got zero deflection. What, then, was the speed of the particles (in terms of E and B)?\ (b) Then he turned off the electric field, and measured the radius of curvature, R, of the beam, as deflected by the magnetic field alone. In terms of E, B, and R, what is the charge-to-mass ratio (q/m) of the particles?}{Problem 5.3}
card{Suppose that the magnetic field in some region has the form [B = kzhat{x}] (where k is a constant). Find the force on a square loop (side a), lying in the yz plane and centered at the origin, if it carries a current $I$, flowing counterclockwise, when you look down the x axis.}{Problem 5.4}
end{document}
Result:
answered Mar 29 at 15:12
MarijnMarijn
8,459636
8,459636
1
Thanks for the answer it worked no errors anymore. i cant upvote your answer but it was really helpfull.
– Danielvanheuven
Mar 30 at 5:45
@Danielvanheuven I'm substituting you for the vote. You've done really well.
– Sebastiano
Mar 30 at 13:12
add a comment |
1
Thanks for the answer it worked no errors anymore. i cant upvote your answer but it was really helpfull.
– Danielvanheuven
Mar 30 at 5:45
@Danielvanheuven I'm substituting you for the vote. You've done really well.
– Sebastiano
Mar 30 at 13:12
1
1
Thanks for the answer it worked no errors anymore. i cant upvote your answer but it was really helpfull.
– Danielvanheuven
Mar 30 at 5:45
Thanks for the answer it worked no errors anymore. i cant upvote your answer but it was really helpfull.
– Danielvanheuven
Mar 30 at 5:45
@Danielvanheuven I'm substituting you for the vote. You've done really well.
– Sebastiano
Mar 30 at 13:12
@Danielvanheuven I'm substituting you for the vote. You've done really well.
– Sebastiano
Mar 30 at 13:12
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482054%2fhow-do-i-get-an-empty-line-in-my-flashcard%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Welcome to TeX.SX. Have you considered reading an introduction to LaTeX? You cannot use double backslashes to add empty lines in the output.
– Johannes_B
Mar 29 at 5:43
welcome to tex.se! that we can help you and understand what is your problem, please extend your code fragment to complete small document beginning with
documentclass{...}
and ending withend{document}
.– Zarko
Mar 29 at 5:43
i also get the error for my 5.4 question while i dont have any linebreaks in there so the document is fine i just get the error.
– Danielvanheuven
Mar 29 at 6:01