How to create user defined time table
up vote
0
down vote
favorite
I have to create a three years work plane, but it still only shows me 4 months,
How do I need to do?
documentclass{article}
usepackage{etoolbox}
usepackage{parskip}
usepackage{tikz}
usepackage{pgfgantt}
usepackage{ifthen}
newcounter{myWeekNum}
stepcounter{myWeekNum}
begin{document}
newcommand{myWeek}{themyWeekNum
stepcounter{myWeekNum}
ifnumthemyWeekNum=53
setcounter{myWeekNum}{2}
elsefi
}
%
%%% Begin document
setcounter{myWeekNum}{1}
ganttset{%
calendar week text={myWeek{}}%
}
%
begin{figure}[h!bt]
begin{center}
begin{ganttchart}[
vgrid={*{6}{draw=none}, dotted},
x unit=.08cm,
y unit title=.6cm,
y unit chart=.6cm,
time slot format=isodate,
time slot format/start date=2019-6-01]{2021-12-01}{2022-04-30}
ganttset{bar height=1.6}
gantttitlecalendar{year, month=name} \
ganttbar[bar/.append style={fill=blue}]{Task 1}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 2}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 3}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=red}]{Task 4}{2021-12-01}{2022-04-19}
end{ganttchart}
end{center}
caption{Time Plan}
end{figure}
end{document}
tables pdftex datetime2
add a comment |
up vote
0
down vote
favorite
I have to create a three years work plane, but it still only shows me 4 months,
How do I need to do?
documentclass{article}
usepackage{etoolbox}
usepackage{parskip}
usepackage{tikz}
usepackage{pgfgantt}
usepackage{ifthen}
newcounter{myWeekNum}
stepcounter{myWeekNum}
begin{document}
newcommand{myWeek}{themyWeekNum
stepcounter{myWeekNum}
ifnumthemyWeekNum=53
setcounter{myWeekNum}{2}
elsefi
}
%
%%% Begin document
setcounter{myWeekNum}{1}
ganttset{%
calendar week text={myWeek{}}%
}
%
begin{figure}[h!bt]
begin{center}
begin{ganttchart}[
vgrid={*{6}{draw=none}, dotted},
x unit=.08cm,
y unit title=.6cm,
y unit chart=.6cm,
time slot format=isodate,
time slot format/start date=2019-6-01]{2021-12-01}{2022-04-30}
ganttset{bar height=1.6}
gantttitlecalendar{year, month=name} \
ganttbar[bar/.append style={fill=blue}]{Task 1}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 2}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 3}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=red}]{Task 4}{2021-12-01}{2022-04-19}
end{ganttchart}
end{center}
caption{Time Plan}
end{figure}
end{document}
tables pdftex datetime2
2
I think you have to change dates here{2021-12-01}{2022-04-30}
.
– Sigur
Nov 16 at 22:55
1
Usestart date=2019-1-01
and{2019-1-01}{2022-12-31}
for years 2019-2022.
– Sigur
Nov 16 at 22:58
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have to create a three years work plane, but it still only shows me 4 months,
How do I need to do?
documentclass{article}
usepackage{etoolbox}
usepackage{parskip}
usepackage{tikz}
usepackage{pgfgantt}
usepackage{ifthen}
newcounter{myWeekNum}
stepcounter{myWeekNum}
begin{document}
newcommand{myWeek}{themyWeekNum
stepcounter{myWeekNum}
ifnumthemyWeekNum=53
setcounter{myWeekNum}{2}
elsefi
}
%
%%% Begin document
setcounter{myWeekNum}{1}
ganttset{%
calendar week text={myWeek{}}%
}
%
begin{figure}[h!bt]
begin{center}
begin{ganttchart}[
vgrid={*{6}{draw=none}, dotted},
x unit=.08cm,
y unit title=.6cm,
y unit chart=.6cm,
time slot format=isodate,
time slot format/start date=2019-6-01]{2021-12-01}{2022-04-30}
ganttset{bar height=1.6}
gantttitlecalendar{year, month=name} \
ganttbar[bar/.append style={fill=blue}]{Task 1}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 2}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 3}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=red}]{Task 4}{2021-12-01}{2022-04-19}
end{ganttchart}
end{center}
caption{Time Plan}
end{figure}
end{document}
tables pdftex datetime2
I have to create a three years work plane, but it still only shows me 4 months,
How do I need to do?
documentclass{article}
usepackage{etoolbox}
usepackage{parskip}
usepackage{tikz}
usepackage{pgfgantt}
usepackage{ifthen}
newcounter{myWeekNum}
stepcounter{myWeekNum}
begin{document}
newcommand{myWeek}{themyWeekNum
stepcounter{myWeekNum}
ifnumthemyWeekNum=53
setcounter{myWeekNum}{2}
elsefi
}
%
%%% Begin document
setcounter{myWeekNum}{1}
ganttset{%
calendar week text={myWeek{}}%
}
%
begin{figure}[h!bt]
begin{center}
begin{ganttchart}[
vgrid={*{6}{draw=none}, dotted},
x unit=.08cm,
y unit title=.6cm,
y unit chart=.6cm,
time slot format=isodate,
time slot format/start date=2019-6-01]{2021-12-01}{2022-04-30}
ganttset{bar height=1.6}
gantttitlecalendar{year, month=name} \
ganttbar[bar/.append style={fill=blue}]{Task 1}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 2}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 3}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=red}]{Task 4}{2021-12-01}{2022-04-19}
end{ganttchart}
end{center}
caption{Time Plan}
end{figure}
end{document}
tables pdftex datetime2
tables pdftex datetime2
edited Nov 16 at 22:48
Bernard
162k767192
162k767192
asked Nov 16 at 22:31
ABCDEMMM
184
184
2
I think you have to change dates here{2021-12-01}{2022-04-30}
.
– Sigur
Nov 16 at 22:55
1
Usestart date=2019-1-01
and{2019-1-01}{2022-12-31}
for years 2019-2022.
– Sigur
Nov 16 at 22:58
add a comment |
2
I think you have to change dates here{2021-12-01}{2022-04-30}
.
– Sigur
Nov 16 at 22:55
1
Usestart date=2019-1-01
and{2019-1-01}{2022-12-31}
for years 2019-2022.
– Sigur
Nov 16 at 22:58
2
2
I think you have to change dates here
{2021-12-01}{2022-04-30}
.– Sigur
Nov 16 at 22:55
I think you have to change dates here
{2021-12-01}{2022-04-30}
.– Sigur
Nov 16 at 22:55
1
1
Use
start date=2019-1-01
and {2019-1-01}{2022-12-31}
for years 2019-2022.– Sigur
Nov 16 at 22:58
Use
start date=2019-1-01
and {2019-1-01}{2022-12-31}
for years 2019-2022.– Sigur
Nov 16 at 22:58
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
Here is a possible solution. It is not clear to me what you want.
Since 3 years has 36 months, the width image is tooooo long. So a standalone
will produce a wider pdf.
Here is only a piece from pdf viewer.
documentclass{standalone}
usepackage{pgfgantt}
usepackage{ifthen}
newcounter{myWeekNum}
stepcounter{myWeekNum}
newcommand{myWeek}{themyWeekNum
stepcounter{myWeekNum}
ifnumthemyWeekNum=53
setcounter{myWeekNum}{2}
elsefi
}
setcounter{myWeekNum}{1}
ganttset{%
calendar week text={myWeek{}}%
}
begin{document}
begin{ganttchart}[
vgrid={*{6}{draw=none}, dotted},
x unit=.08cm,
y unit title=.6cm,
y unit chart=.6cm,
time slot format=isodate,
time slot format/start date=2019-1-01]{2019-1-01}{2022-12-31}
ganttset{bar height=.6}
gantttitlecalendar{year, month=name} \
ganttbar[bar/.append style={fill=blue}]{Task 1}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 2}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 3}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=red}]{Task 4}{2021-12-01}{2022-04-19}
end{ganttchart}
end{document}
I only want to creat a three years plane in A4 page. can we change the size of the value of width for every month?
– ABCDEMMM
Nov 16 at 23:09
I am not expert and never used this tool. Maybe, take a look at its documentation at ctan.org/pkg/pgfgantt
– Sigur
Nov 16 at 23:11
is there other package to do such works?
– ABCDEMMM
Nov 16 at 23:34
I don't know. Sorry.
– Sigur
Nov 16 at 23:40
no, I have to say "thank you very much"
– ABCDEMMM
Nov 16 at 23:49
|
show 1 more comment
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Here is a possible solution. It is not clear to me what you want.
Since 3 years has 36 months, the width image is tooooo long. So a standalone
will produce a wider pdf.
Here is only a piece from pdf viewer.
documentclass{standalone}
usepackage{pgfgantt}
usepackage{ifthen}
newcounter{myWeekNum}
stepcounter{myWeekNum}
newcommand{myWeek}{themyWeekNum
stepcounter{myWeekNum}
ifnumthemyWeekNum=53
setcounter{myWeekNum}{2}
elsefi
}
setcounter{myWeekNum}{1}
ganttset{%
calendar week text={myWeek{}}%
}
begin{document}
begin{ganttchart}[
vgrid={*{6}{draw=none}, dotted},
x unit=.08cm,
y unit title=.6cm,
y unit chart=.6cm,
time slot format=isodate,
time slot format/start date=2019-1-01]{2019-1-01}{2022-12-31}
ganttset{bar height=.6}
gantttitlecalendar{year, month=name} \
ganttbar[bar/.append style={fill=blue}]{Task 1}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 2}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 3}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=red}]{Task 4}{2021-12-01}{2022-04-19}
end{ganttchart}
end{document}
I only want to creat a three years plane in A4 page. can we change the size of the value of width for every month?
– ABCDEMMM
Nov 16 at 23:09
I am not expert and never used this tool. Maybe, take a look at its documentation at ctan.org/pkg/pgfgantt
– Sigur
Nov 16 at 23:11
is there other package to do such works?
– ABCDEMMM
Nov 16 at 23:34
I don't know. Sorry.
– Sigur
Nov 16 at 23:40
no, I have to say "thank you very much"
– ABCDEMMM
Nov 16 at 23:49
|
show 1 more comment
up vote
2
down vote
Here is a possible solution. It is not clear to me what you want.
Since 3 years has 36 months, the width image is tooooo long. So a standalone
will produce a wider pdf.
Here is only a piece from pdf viewer.
documentclass{standalone}
usepackage{pgfgantt}
usepackage{ifthen}
newcounter{myWeekNum}
stepcounter{myWeekNum}
newcommand{myWeek}{themyWeekNum
stepcounter{myWeekNum}
ifnumthemyWeekNum=53
setcounter{myWeekNum}{2}
elsefi
}
setcounter{myWeekNum}{1}
ganttset{%
calendar week text={myWeek{}}%
}
begin{document}
begin{ganttchart}[
vgrid={*{6}{draw=none}, dotted},
x unit=.08cm,
y unit title=.6cm,
y unit chart=.6cm,
time slot format=isodate,
time slot format/start date=2019-1-01]{2019-1-01}{2022-12-31}
ganttset{bar height=.6}
gantttitlecalendar{year, month=name} \
ganttbar[bar/.append style={fill=blue}]{Task 1}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 2}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 3}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=red}]{Task 4}{2021-12-01}{2022-04-19}
end{ganttchart}
end{document}
I only want to creat a three years plane in A4 page. can we change the size of the value of width for every month?
– ABCDEMMM
Nov 16 at 23:09
I am not expert and never used this tool. Maybe, take a look at its documentation at ctan.org/pkg/pgfgantt
– Sigur
Nov 16 at 23:11
is there other package to do such works?
– ABCDEMMM
Nov 16 at 23:34
I don't know. Sorry.
– Sigur
Nov 16 at 23:40
no, I have to say "thank you very much"
– ABCDEMMM
Nov 16 at 23:49
|
show 1 more comment
up vote
2
down vote
up vote
2
down vote
Here is a possible solution. It is not clear to me what you want.
Since 3 years has 36 months, the width image is tooooo long. So a standalone
will produce a wider pdf.
Here is only a piece from pdf viewer.
documentclass{standalone}
usepackage{pgfgantt}
usepackage{ifthen}
newcounter{myWeekNum}
stepcounter{myWeekNum}
newcommand{myWeek}{themyWeekNum
stepcounter{myWeekNum}
ifnumthemyWeekNum=53
setcounter{myWeekNum}{2}
elsefi
}
setcounter{myWeekNum}{1}
ganttset{%
calendar week text={myWeek{}}%
}
begin{document}
begin{ganttchart}[
vgrid={*{6}{draw=none}, dotted},
x unit=.08cm,
y unit title=.6cm,
y unit chart=.6cm,
time slot format=isodate,
time slot format/start date=2019-1-01]{2019-1-01}{2022-12-31}
ganttset{bar height=.6}
gantttitlecalendar{year, month=name} \
ganttbar[bar/.append style={fill=blue}]{Task 1}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 2}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 3}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=red}]{Task 4}{2021-12-01}{2022-04-19}
end{ganttchart}
end{document}
Here is a possible solution. It is not clear to me what you want.
Since 3 years has 36 months, the width image is tooooo long. So a standalone
will produce a wider pdf.
Here is only a piece from pdf viewer.
documentclass{standalone}
usepackage{pgfgantt}
usepackage{ifthen}
newcounter{myWeekNum}
stepcounter{myWeekNum}
newcommand{myWeek}{themyWeekNum
stepcounter{myWeekNum}
ifnumthemyWeekNum=53
setcounter{myWeekNum}{2}
elsefi
}
setcounter{myWeekNum}{1}
ganttset{%
calendar week text={myWeek{}}%
}
begin{document}
begin{ganttchart}[
vgrid={*{6}{draw=none}, dotted},
x unit=.08cm,
y unit title=.6cm,
y unit chart=.6cm,
time slot format=isodate,
time slot format/start date=2019-1-01]{2019-1-01}{2022-12-31}
ganttset{bar height=.6}
gantttitlecalendar{year, month=name} \
ganttbar[bar/.append style={fill=blue}]{Task 1}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 2}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=blue}]{Task 3}{2019-6-01}{2021-12-01}\
ganttbar[bar/.append style={fill=red}]{Task 4}{2021-12-01}{2022-04-19}
end{ganttchart}
end{document}
edited Nov 16 at 23:12
answered Nov 16 at 23:07
Sigur
23.3k354135
23.3k354135
I only want to creat a three years plane in A4 page. can we change the size of the value of width for every month?
– ABCDEMMM
Nov 16 at 23:09
I am not expert and never used this tool. Maybe, take a look at its documentation at ctan.org/pkg/pgfgantt
– Sigur
Nov 16 at 23:11
is there other package to do such works?
– ABCDEMMM
Nov 16 at 23:34
I don't know. Sorry.
– Sigur
Nov 16 at 23:40
no, I have to say "thank you very much"
– ABCDEMMM
Nov 16 at 23:49
|
show 1 more comment
I only want to creat a three years plane in A4 page. can we change the size of the value of width for every month?
– ABCDEMMM
Nov 16 at 23:09
I am not expert and never used this tool. Maybe, take a look at its documentation at ctan.org/pkg/pgfgantt
– Sigur
Nov 16 at 23:11
is there other package to do such works?
– ABCDEMMM
Nov 16 at 23:34
I don't know. Sorry.
– Sigur
Nov 16 at 23:40
no, I have to say "thank you very much"
– ABCDEMMM
Nov 16 at 23:49
I only want to creat a three years plane in A4 page. can we change the size of the value of width for every month?
– ABCDEMMM
Nov 16 at 23:09
I only want to creat a three years plane in A4 page. can we change the size of the value of width for every month?
– ABCDEMMM
Nov 16 at 23:09
I am not expert and never used this tool. Maybe, take a look at its documentation at ctan.org/pkg/pgfgantt
– Sigur
Nov 16 at 23:11
I am not expert and never used this tool. Maybe, take a look at its documentation at ctan.org/pkg/pgfgantt
– Sigur
Nov 16 at 23:11
is there other package to do such works?
– ABCDEMMM
Nov 16 at 23:34
is there other package to do such works?
– ABCDEMMM
Nov 16 at 23:34
I don't know. Sorry.
– Sigur
Nov 16 at 23:40
I don't know. Sorry.
– Sigur
Nov 16 at 23:40
no, I have to say "thank you very much"
– ABCDEMMM
Nov 16 at 23:49
no, I have to say "thank you very much"
– ABCDEMMM
Nov 16 at 23:49
|
show 1 more comment
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%2f460385%2fhow-to-create-user-defined-time-table%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
2
I think you have to change dates here
{2021-12-01}{2022-04-30}
.– Sigur
Nov 16 at 22:55
1
Use
start date=2019-1-01
and{2019-1-01}{2022-12-31}
for years 2019-2022.– Sigur
Nov 16 at 22:58