组织模式安排一段时间内的每周活动
我想使用议程来跟踪我的课程,假设我从 3 月到 6 月每周都有 com 355 课程,
<2010-03-23 Tue 10:40-12:10 +1w>
这可行,但如果我使用它,它会无限期地安排它,
<2010-03-23 Tue 10:40-12:10 +1w>-<2010-06-23>
它会被安排在从 3 月到 6 月的每天,怎么办我安排在一段时间内每周一次?
I would like to use agenda to keep track of my classes, assuming i have a com 355 class every week from march to june,
<2010-03-23 Tue 10:40-12:10 +1w>
this works but it schedules it indefinitely if i use,
<2010-03-23 Tue 10:40-12:10 +1w>-<2010-06-23>
it gets scheduled for everyday from march to june, how can i schedule this once a week for a period of time?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我遇到了类似的问题,并发现“如何在我的组织文件中创建更复杂的约会?”的答案很有用。在常见问题解答中 http://orgmode.org/worg/org-faq.html#Appointments/Diary< /a> 您甚至可以添加假期例外。但我无法完成工作:当你添加它时,公式停止工作:(
1) 我的例子:周二和周四的课程落在[2011-03-07 Mon]--[2011-06-25 Sat ] 减去 [2011-05-15 Sun]--[2011-05-20 Fri](一周假期):
如果分解布尔函数,您会得到以下结果,这是不言自明的:
2)我对您的建议案例:从3月到6月,每周二上课(我冒昧地将年份定为2011年):
您可能想看看新添加的部分“如何安排每周持续有限时间的课程”一段时间?”,关于“org-diary-class”功能,但它似乎仍然有安排时间的问题:(
希望它有帮助,
I had a similar problem and found usefull the answer to "How can I create more complex appointments in my org-files?" in the FAQ at http://orgmode.org/worg/org-faq.html#Appointments/Diary You can even add exceptions for holidays. I was not able to make work the time though: when you add it the formula stops working :(
1) My example: Courses on Tuesdays and Thursdays falling in [2011-03-07 Mon]--[2011-06-25 Sat] minus [2011-05-15 Sun]--[2011-05-20 Fri] (a week of holiday):
If you decompose the boolean function, you get the following, which is self explanatory:
2) My suggestion for your case: a class every Tuesday every week from March to June (I took the liberty to fix the year to 2011):
You might want to have a look to the newly added section "How can I schedule a weekly class that lasts for a limited period of time?", about the function "org-diary-class", but it still seems to have problem with scheduling hours :(
Hope it helps,
可能没有办法直接做到这一点,但组织模式允许您使用日记 sexp 样式指定时间。 (http://orgmode.org/org.html#Timestamps)
如果你看一些日记功能手册中的示例 (http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html#Sexp-Diary-Entries)你会看到您可以提供任意代码来定义事件的发生。
There might not be a way to do that directly, but Org-mode allows you to specify times using the diary sexp style. (http://orgmode.org/org.html#Timestamps)
If you look at some of the examples in the manual for the diary functions (http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html#Sexp-Diary-Entries) you'll see that you can provide arbitrary code to define the occurrences of the event.
没有办法做你想做的事——范围对此不起作用(我在组织模式列表上询问)。
您可以克隆约会,将克隆间隔一周。这将为您提供该时间段内每一天该项目的一个实例。这可能很麻烦,也可能正是您想要的。
There is no way to do what you want --- ranges don't work for this (I asked on the org-mode list).
You can clone the appointment, setting the clones one week apart. This will give you one instance of the item for every day in the period. This might be cumbersome, or it might be just what you want.
您可以使用日记来执行此操作,如果您按照说明操作,此处有说明(确保您有一个 ~/diary 文件)然后它会拾取它并将其添加到您的议程中。您可能需要根据您的设置更改日期格式。
You can use the diary to do this, there's an explanation here if you follow the instructions (make sure you have a ~/diary file) then it will pick it up and add it to your agenda. You may need to alter your date format depending on your settings.
像这样的事情应该可以解决问题,并且应该安排时间,
其中数字代表
开始 YMD 完成 YMD DayOfWeek(周日 = 0,周一 = 1 ...)
Something like this should do the trick, and it should schedule hours
Where the numbers represent
Start Y M D Finish Y M D DayOfWeek (Sun = 0, Mon = 1 ...)
这对我来说已经有用很多年了:
This works for me already many years: