누군가 아래 코드에서 카운터(?)를 재설정하도록 도와줄 수 있나요? 답변 섹션은 로 시작해야 합니다 #1
. 나는 필요하다
\RenewTasks[resume, style=custom,label-align=right]{tasks}(2)
서문에서.
감사합니다.
\documentclass{book}
\usepackage[a4paper, top=2cm, bottom=2cm]{geometry}
\usepackage{multicol, paralist, multirow, amsmath, amsthm, amssymb, amsfonts, ulem}
\usepackage{tasks}[2014/07/20]
\DeclareInstance{tasks}{custom}{default}{
counter-format = tsk. ,
label-format = \bfseries ,
label-width = 2em ,
label-offset = .3333em ,
after-item-skip = 5pt
}
\RenewTasks[resume, style=custom,label-align=right]{tasks}(2)
\begin{document}
%
%
In Exercises 1-8, factor the common factor in the polynomials.
\begin{tasks}(3)
\task
$3x^3 - 21x$
\task
$5x^6 + 15x^4$
\task
$4x^3 + 10x^2 - 2x$
\end{tasks}
%
%
\begin{tasks}(1)
\task
This is a long word problem, more than one line. I can't seem to use rlap for this. I have to use another begin{tasks} section here.
\end{tasks}
In Exercises 8-13, solve the polynomial equations.
\begin{tasks}(2)
\task
$x(x+12) = 0$
\task
$(2x+1)(2x-1) = 0$
\end{tasks}
%
\vspace{1in}
%%%%%%%
Answers:
\begin{tasks}(2)
\task
$3x(x^2-7)$
\task
$5x^4(x^2+3)$
\task
$2x(2x^2+5x-1)$
%
\task
answer to the word problem
\task
$x=0, \, x = -12$
\task
$x = - \, \dfrac 12, \, x = \, \dfrac 12$
\end{tasks}
\end{document}
답변1
두가지:
긴 항목을 수용하기 위해 새로운 환경을 시작할 필요가 없습니다. 그냥 사용\task*
\task*
This is a long word problem, more than one line. I can't seem to use rlap for this. I have to use another begin{tasks} section here.
[resume=false]
둘째, 답변을 입력할 때 옵션을 로컬로 전달할 수 있습니다 .
Answers:
\begin{tasks}[resume=false](2)
전체 코드:
\documentclass{book}
\usepackage[a4paper, top=2cm, bottom=2cm]{geometry}
\usepackage{multicol, paralist, multirow, amsmath, amsthm, amssymb, amsfonts, ulem}
\usepackage{tasks}
\DeclareInstance{tasks}{custom}{default}{
counter-format = tsk. ,
label-format = \bfseries ,
label-width = 2em ,
label-offset = .3333em ,
after-item-skip = 5pt
}
\RenewTasks[resume, style=custom,label-align=right]{tasks}(2)
\begin{document}
%
%
In Exercises 1-8, factor the common factor in the polynomials.
\begin{tasks}(3)
\task
$3x^3 - 21x$
\task
$5x^6 + 15x^4$
\task
$4x^3 + 10x^2 - 2x$
%\end{tasks}
%%
%%
%\begin{tasks}(1)
\task*
This is a long word problem, more than one line. I can't seem to use rlap for this. I have to use another begin{tasks} section here.
\end{tasks}
In Exercises 8-13, solve the polynomial equations.
\begin{tasks}(2)
\task
$x(x+12) = 0$
\task
$(2x+1)(2x-1) = 0$
\end{tasks}
%
\vspace{1in}
%%%%%%%
Answers:
\begin{tasks}[resume=false](2)
\task
$3x(x^2-7)$
\task
$5x^4(x^2+3)$
\task
$2x(2x^2+5x-1)$
%
\task
answer to the word problem
\task
$x=0, \, x = -12$
\task
$x = - \, \dfrac 12, \, x = \, \dfrac 12$
\end{tasks}
\end{document}
여담으로, 질문 범위를 하드 코딩하는 대신 질문에 레이블을 지정하고 사용할 수 있습니다.\ref
대안으로 다음을 정의할 수 있습니다.
\NewTasks[resume, style=custom,label-align=right]{questions}(2)
\NewTasks[style=custom,label-align=right]{answers}
그리고 그것들을 다음과 같이 사용하십시오
\begin{questions}(3)
\task
$3x^3 - 21x$
\end{questions}
\begin{answers}(2)
\task
$3x^3 - 21x$
\end{answers}
그러면 코드가 더 읽기 쉬워집니다. \task
원하는 경우 구분 기호도 변경할 수 있습니다 . 자세한 내용은 설명서를 참조하세요.