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}









share|improve this question




















  • 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















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}









share|improve this question




















  • 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













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}









share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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




    Use start date=2019-1-01 and {2019-1-01}{2022-12-31} for years 2019-2022.
    – Sigur
    Nov 16 at 22:58














  • 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








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










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.



enter image description here



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}





share|improve this answer























  • 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











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',
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
});


}
});














 

draft saved


draft discarded


















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

























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.



enter image description here



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}





share|improve this answer























  • 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















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.



enter image description here



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}





share|improve this answer























  • 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













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.



enter image description here



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}





share|improve this answer














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.



enter image description here



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}






share|improve this answer














share|improve this answer



share|improve this answer








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


















  • 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


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?